Browse Source

add fullwidth numeric chars #1606

Robin Herbots 8 years ago
parent
commit
897f5d90f4
2 changed files with 5 additions and 4 deletions
  1. 1 0
      CHANGELOG.md
  2. 4 4
      js/inputmask.js

+ 1 - 0
CHANGELOG.md

@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
 
 ## [UNRELEASED - 3.3.8]
 ### added
+- added \uFF11-\uFF19 character range to 9 definition #1606
 - importDataAttributes option #1633
 - add dot support in regex #1651
 

+ 4 - 4
js/inputmask.js

@@ -122,18 +122,18 @@
             importDataAttributes: true //import data-inputmask attributes
         },
         definitions: {
-            "9": {
-                validator: "[0-9]",
+            "9": { //\uFF11-\uFF19 #1606
+                validator: "[0-9\uFF11-\uFF19]",
                 cardinality: 1,
                 definitionSymbol: "*"
             },
-            "a": {
+            "a": { //\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5 #76
                 validator: "[A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]",
                 cardinality: 1,
                 definitionSymbol: "*"
             },
             "*": {
-                validator: "[0-9A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]",
+                validator: "[0-9\uFF11-\uFF19A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]",
                 cardinality: 1
             }
         },