Skip to content

Instantly share code, notes, and snippets.

@hasantayyar
Forked from przemoc/validations.rb
Last active January 4, 2016 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasantayyar/8577963 to your computer and use it in GitHub Desktop.
Save hasantayyar/8577963 to your computer and use it in GitHub Desktop.
iban,issn,isbn validations js
var validations = {
iban : function(str){
//International Bank Account Number
if(!str.match(/[A-Z]{2}\d{2} ?[A-Z\d]{4}( ?\d{4}){1,} ?\d{1,4}/)) {
return false;
}
},
isbn : function(str){
// implement
},
issn : function(str){
// implement
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment