mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Don't add the g
flag
This commit is contained in:
parent
0044a99000
commit
8199c3b440
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue