mirror of
https://github.com/tooot-app/app
synced 2025-01-06 23:01:51 +01:00
Fix for certain domain that includes dash
e.g. `@m-i.im`
This commit is contained in:
parent
03dc94c7c9
commit
560d11643b
@ -140,7 +140,7 @@ export var alphaNumericCharsStr = alphaCharsAndMarksStr + decimalNumbersStr;
|
||||
* `[\p{L}\p{M}\p{Nd}]` escape ("all letters, combining marks, and decimal
|
||||
* numbers")
|
||||
*/
|
||||
export var alphaNumericAndMarksCharsStr = alphaCharsAndMarksStr + decimalNumbersStr;
|
||||
export var alphaNumericAndMarksCharsStr = alphaCharsAndMarksStr + decimalNumbersStr + '-';
|
||||
// Simplified IP regular expression
|
||||
var ipStr = '(?:[' + decimalNumbersStr + ']{1,3}\\.){3}[' + decimalNumbersStr + ']{1,3}';
|
||||
// Protected domain label which do not allow "-" character on the beginning and the end of a single label
|
||||
|
Loading…
Reference in New Issue
Block a user