Browse Source

Fixes decimal rule to only match decimals #3060

pull/3130/merge
Jack 9 years ago
parent
commit
77dfa8f03a
2 changed files with 2 additions and 1 deletions
  1. 1
      RELEASE-NOTES.md
  2. 2
      src/definitions/behaviors/form.js

1
RELEASE-NOTES.md

@ -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**

2
src/definitions/behaviors/form.js

@ -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 : /^\/(.*)\/(.*)?/,

Loading…
Cancel
Save