Skip to content

Commit

Permalink
Fixes decimal rule to only match decimals #3060
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Nov 1, 2015
1 parent 34ea9f9 commit 53576bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- **Dropdown** - `search dropdown` will now initialize with `autocomplete="off"` to avoid triggering native autocomplete menu
- **Form Validation** - Fixes error on `blur` or `change` when using a blank validation object #3131 **Thanks @listepo**
- **Form Validation** - Fixes some issues with form integer validation #3053 **Thanks @maturano**
- **Form Validation** - `decimal` rule now **only matches decimals**, to match any number use `number` rule. #3060
- **Form** - Removed `divider` spacing as part of `ui form`, this caused inheritance issues when using special divider types #3092
- **Grid** - Fixes attached segment 1px offset inside grid column #3226
- **Grid** - Fixes some inconsistencies with `widescreen only` class #3161 **Thanks @mdehoog**
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ $.fn.form.settings = {

regExp: {
bracket : /\[(.*)\]/i,
decimal : /^\-?\d*(\.\d+)?$/,
decimal : /^\d*(\.)\d+/,
email : "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",
escape : /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,
flags : /^\/(.*)\/(.*)?/,
Expand Down

0 comments on commit 53576bf

Please sign in to comment.