We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1f8d9b + 6ed2039 commit 52569cbCopy full SHA for 52569cb
form-validator/jquery.form-validator.js
@@ -1576,7 +1576,7 @@
1576
validatorFunction: function (val) {
1577
return val.length > 0 &&
1578
val.length <= 253 && // Including sub domains
1579
- !(/[^a-zA-Z0-9]/.test(val.slice(-2))) && !(/[^a-zA-Z0-9]/.test(val.substr(0, 1))) && !(/[^a-zA-Z0-9\.\-]/.test(val)) &&
+ !(/[^a-zA-Z0-9]/.test(val.slice(-2))) && !(/[^a-zA-Z0-9\.\-]/.test(val)) &&
1580
val.split('..').length === 1 &&
1581
val.split('.').length > 1;
1582
},
0 commit comments