symbol regex fix
This commit is contained in:
parent
70c772cd3b
commit
0f073a7457
3 changed files with 5 additions and 3 deletions
|
@ -45,7 +45,7 @@ $.validator.addMethod("numberscount", function (value, element, count) {
|
|||
$.validator.unobtrusive.adapters.addSingleVal("symbolscount", "count");
|
||||
|
||||
$.validator.addMethod("symbolscount", function (value, element, count) {
|
||||
if (value.replace(/[a-zA-Z0-9_]/g, "").length < count) {
|
||||
if (value.replace(/[^~!@#$%^&*_\-+'\|\\(){}\[\]:;\"'<>,.?/]/g, "").length < count) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue