ソースを参照

Update jquery.inputmask.extensions.js

Changed the way Email validator/mask works. It should accept local mails like "admin@localserver" but it doesn't.

http://en.wikipedia.org/wiki/Email_address#Syntax
Henrique Lauro Bagio de Souza 11 年 前
コミット
66f647fab8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      js/jquery.inputmask.extensions.js

+ 1 - 1
js/jquery.inputmask.extensions.js

@@ -109,7 +109,7 @@ Optional extensions on the jquery.inputmask base
             }
             }
         },
         },
         "email": {
         "email": {
-            mask: "*{1,20}[.*{1,20}][.*{1,20}][.*{1,20}]@*{1,20}.*{2,6}[.*{1,2}]",
+            mask: "*{1,20}[.*{1,20}][.*{1,20}][.*{1,20}]@*{1,20}[.*{2,6}][.*{1,2}]",
             greedy: false,
             greedy: false,
             onBeforePaste: function (pastedValue, opts) {
             onBeforePaste: function (pastedValue, opts) {
                 pastedValue = pastedValue.toLowerCase();
                 pastedValue = pastedValue.toLowerCase();