first commit

This commit is contained in:
2024-11-11 15:28:20 +01:00
commit 3f5649dbc7
6231 changed files with 999089 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/* eslint-disable func-names */
/* Validator house number */
jQuery.validator.addMethod(
"house_number",
function(value, element) {
const reg = /^[0-9]{1}[a-zA-Z0-9ąĄęĘóśŚÓłŁżŻźŹćĆńŃ\-\s/\\]*$/;
return this.optional(element) || reg.test(value);
},
"Wprowadź poprawnie numer mieszkania."
);
/* House number validator */
jQuery.validator.addClassRules("js-validation-house-number", {
house_number: true,
});