no special chars regexp
This commit is contained in:
@@ -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]+"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user