Browse Source

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

nghuuphuoc 11 years ago
parent
commit
e8166dcec7

+ 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"```

File diff suppressed because it is too large
+ 56 - 1
dist/js/bootstrapValidator.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/bootstrapValidator.min.js


File diff suppressed because it is too large
+ 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