no special chars regexp

This commit is contained in:
Yuri Kuznetsov
2022-07-05 10:20:23 +03:00
parent 4bef98e3f4
commit 3fbd65ceca
2 changed files with 4 additions and 0 deletions
@@ -280,6 +280,7 @@
"fieldUrlExceedsMaxLength": "Encoded URL exceeds max length of {maxLength}",
"fieldNotMatchingPattern": "{field} does not match the pattern `{pattern}`",
"fieldNotMatchingPattern$noBadCharacters": "{field} contains not allowed characters",
"fieldNotMatchingPattern$noSpecialCharacters": "{field} should not contain special characters",
"fieldNotMatchingPattern$latinLetters": "{field} can contain only latin letters",
"fieldNotMatchingPattern$latinLettersDigits": "{field} can contain only latin letters and digits",
"fieldNotMatchingPattern$latinLettersDigitsWhitespace": "{field} can contain only latin letters, digits and whitespace",
@@ -2,6 +2,9 @@
"noBadCharacters": {
"pattern": "[^<>=]+"
},
"noSpecialCharacters": {
"pattern": "[^`~!@#$%^&*()_+={}\\[\\]|\\\\:;“’<,>.?๐฿]+"
},
"latinLetters": {
"pattern": "[A-Za-z]+"
},