浏览代码

#248: Add ```isin``` (International Securities Identification Number) validator

nghuuphuoc 11 年之前
父节点
当前提交
e8166dcec7
共有 5 个文件被更改,包括 114 次插入3 次删除
  1. 1 0
      CHANGELOG.md
  2. 56 1
      dist/js/bootstrapValidator.js
  3. 1 1
      dist/js/bootstrapValidator.min.js
  4. 55 0
      src/js/validator/isin.js
  5. 1 1
      src/js/validator/zipCode.js

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 * [#233](https://github.com/nghuuphuoc/bootstrapvalidator/issues/233): Add ```threshold``` option
 * [#232](https://github.com/nghuuphuoc/bootstrapvalidator/issues/232): Add ```id``` validator
 * [#242](https://github.com/nghuuphuoc/bootstrapvalidator/issues/242): Add ```separator``` option to the [```numeric``` validator](http://bootstrapvalidator.com/validators/numeric/)
+* [#248](https://github.com/nghuuphuoc/bootstrapvalidator/issues/248): Add ```isin``` (International Securities Identification Number) validator
 * The [```zipCode``` validator](http://bootstrapvalidator.com/validators/zipCode/) adds support for Italian, Dutch postcodes
 * [#245](https://github.com/nghuuphuoc/bootstrapvalidator/pull/245): The [```cvv``` validator](http://bootstrapvalidator.com/validators/cvv/) should support spaces in credit card, thanks to [@evilchili](https://github.com/evilchili)
 * Change default ```submitButtons``` to ```[type="submit"]``` to support ```input type="submit"```

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


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


文件差异内容过多而无法显示
+ 55 - 0
src/js/validator/isin.js


+ 1 - 1
src/js/validator/zipCode.js

@@ -65,7 +65,7 @@
                 thirdChar  = '[ABCDEFGHJKPMNRSTUVWXY]',
                 fourthChar = '[ABEHMNPRVWXY]',
                 fifthChar  = '[ABDEFGHJLNPQRSTUWXYZ]',
-                regexps = [
+                regexps    = [
                     // AN NAA, ANN NAA, AAN NAA, AANN NAA format
                     new RegExp('^(' + firstChar + '{1}' + secondChar + '?[0-9]{1,2})(\\s*)([0-9]{1}' + fifthChar + '{2})$', 'i'),
                     // ANA NAA