mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-28 12:25:45 +01:00
Fix use of String#replace flags parameter.
It is deprecated. See https://bugzil.la/1142351.
This commit is contained in:
@@ -1431,7 +1431,7 @@ var Commands = Module("commands", {
|
||||
else if ((res = /^(")((?:[^\\"]|\\.)*)("?)/.exec(str)))
|
||||
arg += keepQuotes ? res[0] : JSON.parse(fixEscapes(res[0]) + (res[3] ? "" : '"'));
|
||||
else if ((res = /^(')((?:[^']|'')*)('?)/.exec(str)))
|
||||
arg += keepQuotes ? res[0] : res[2].replace("''", "'", "g");
|
||||
arg += keepQuotes ? res[0] : res[2].replace(/''/g, "'");
|
||||
else
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user