first commit
This commit is contained in:
6
public/bower_components/jquery-validation/src/additional/phoneNL.js
vendored
Normal file
6
public/bower_components/jquery-validation/src/additional/phoneNL.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Dutch phone numbers have 10 digits (or 11 and start with +31).
|
||||
*/
|
||||
$.validator.addMethod( "phoneNL", function( value, element ) {
|
||||
return this.optional( element ) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test( value );
|
||||
}, "Please specify a valid phone number." );
|
||||
Reference in New Issue
Block a user