Don't add the `g` flag
This commit is contained in:
parent
0044a99000
commit
8199c3b440
|
@ -84,7 +84,6 @@ function anchorRegexp(regex) {
|
|||
|
||||
var flags = "";
|
||||
if (regex.global) {
|
||||
flags += "g";
|
||||
if (typeof console !== 'undefined') {
|
||||
console.warn("attribute validation regex should not be global");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue