cdn for js, longer TLDs in contact form

This commit is contained in:
2025-09-18 01:34:36 +00:00
parent 2aed57d730
commit cf8748c40a
9 changed files with 111 additions and 47 deletions
+4 -3
View File
@@ -478,7 +478,7 @@
// How many errors did we find?
if (settings.options.semanticallyStrict && errorsFound.length === 1) {
// Only one? Being strict? Just output it.
$helpBlock.html(errorsFound[0] +
$helpBlock.html(errorsFound[0] +
( settings.options.prependExistingHelpBlock ? $helpBlock.data("original-contents") : "" ));
} else {
// Multiple? Being sloppy? Glue them together into an UL.
@@ -789,8 +789,9 @@
},
validemail: {
name: "Validemail",
type: "regex",
regex: "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\.[A-Za-z]{2,4}",
type: "regex",
// support longer tld: increase 4 -> 10
regex: "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\.[A-Za-z]{2,10}",
message: "Not a valid email address<!-- data-validator-validemail-message to override -->"
},
passwordagain: {