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 alpha with pl and de letters */
jQuery.validator.addMethod(
"alpha_pl_de",
function(value, element) {
const re = /^[a-zA-ZąĄęĘóśŚÓłŁżŻźŹćĆńŃÄäÖöÜüß]+$/;
return this.optional(element) || re.test(value);
},
"Dozwolone są tylko litery."
);
/* Alpha with polish and german letters validator */
jQuery.validator.addClassRules("js-validation-alpha-pl-de", {
alpha_pl_de: true,
});