first commit
This commit is contained in:
16
plugins/jquery-validation/polish/validator.street.js
Normal file
16
plugins/jquery-validation/polish/validator.street.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/* eslint-disable func-names */
|
||||
|
||||
/* Validator street */
|
||||
jQuery.validator.addMethod(
|
||||
"street",
|
||||
function(value, element) {
|
||||
const reg = /^[a-zA-Z0-9ąĄęĘóśŚÓłŁżŻźŹćĆńŃÄäÖöÜüß.\-\s'"]{3,}$/;
|
||||
return this.optional(element) || reg.test(value);
|
||||
},
|
||||
"Wprowadź poprawnie nazwę ulicy."
|
||||
);
|
||||
|
||||
/* Street validator */
|
||||
jQuery.validator.addClassRules("js-validation-street", {
|
||||
street: true,
|
||||
});
|
||||
Reference in New Issue
Block a user