1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 15:25:50 +01:00

Allow negating the regular expression in :autocmd.

This commit is contained in:
Kris Maglione
2010-10-04 23:48:19 -04:00
parent d07b7c8c52
commit c747734f1e
5 changed files with 20 additions and 19 deletions

View File

@@ -913,7 +913,7 @@ const Commands = Module("commands", {
if ((res = re2.exec(str)))
arg += keepQuotes ? res[0] : res[2].replace(/\\(.)/g, "$1");
else if ((res = /^(")((?:[^\\"]|\\.)*)("?)/.exec(str)))
arg += keepQuotes ? res[0] : eval(res[0] + (res[3] ? "" : '"'));
arg += keepQuotes ? res[0] : window.eval(res[0] + (res[3] ? "" : '"'));
else if ((res = /^(')((?:[^']|'')*)('?)/.exec(str)))
arg += keepQuotes ? res[0] : res[2].replace("''", "'", "g");
else