浏览代码

#371: Add H character to the Canadian postcode, thanks to @jzhang6

nghuuphuoc 11 年之前
父节点
当前提交
caaf2ee7b1
共有 4 个文件被更改,包括 4 次插入2 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 0
      README.md
  3. 1 1
      dist/js/bootstrapValidator.js
  4. 1 1
      dist/js/bootstrapValidator.min.js

+ 1 - 0
CHANGELOG.md

@@ -33,6 +33,7 @@ __Improvements__
 * [#348](https://github.com/nghuuphuoc/bootstrapvalidator/issues/348): The [uri validator](http://bootstrapvalidator.com/validators/uri/) now provides an option to support private/local network address
 * [#364](https://github.com/nghuuphuoc/bootstrapvalidator/issues/364): Clicking the feedback icon also effect to the checkbox, radio fields
 * [#366](https://github.com/nghuuphuoc/bootstrapvalidator/issues/366): Don't change the enable setting when the new one is the same
+* [#371](https://github.com/nghuuphuoc/bootstrapvalidator/pull/371): Add H character to the Canadian postcode, thanks to [@jzhang6](https://github.com/jzhang6)
 
 __Bug Fixes__
 * [#288](https://github.com/nghuuphuoc/bootstrapvalidator/issues/288): Fix [```date``` validator](http://bootstrapvalidator.com/validators/date/) issue on IE8

+ 1 - 0
README.md

@@ -111,6 +111,7 @@ Big thanks to the contributors:
 * [@jjshoe](https://github.com/jjshoe)
 * [@johanronn77](https://github.com/johanronn77)
 * [@jswale](https://github.com/jswale)
+* [@jzhang6](https://github.com/jzhang6)
 * [@khangvm53](https://github.com/khangvm53)
 * [@kristian-puccio](https://github.com/kristian-puccio)
 * [@lloydde](https://github.com/lloydde)

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -5411,7 +5411,7 @@
 
             var country = (options.country || 'US').toUpperCase();
             switch (country) {
-                case 'CA': return /^(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}\s?[0-9]{1}(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}$/i.test(value);
+                case 'CA': return /^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}$/i.test(value);
                 case 'DK': return /^(DK(-|\s)?)?\d{4}$/i.test(value);
                 case 'GB': return this._gb(value);
 

文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js