This reverts commit 3c34b8b4f1
.
breaks google3 see http://cl/223526995
PR Close #27375
This commit is contained in:
@ -306,11 +306,7 @@ export class Validators {
|
||||
|
||||
if (pattern.charAt(pattern.length - 1) !== '$') regexStr += '$';
|
||||
|
||||
if (RegExp.prototype.hasOwnProperty('unicode')) {
|
||||
regex = new RegExp(regexStr, 'u');
|
||||
} else {
|
||||
regex = new RegExp(regexStr);
|
||||
}
|
||||
regex = new RegExp(regexStr);
|
||||
} else {
|
||||
regexStr = pattern.toString();
|
||||
regex = pattern;
|
||||
|
Reference in New Issue
Block a user