1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-01 13:35:47 +01:00

Require "x" flag in util.regexp for "extended" regex processing.

This commit is contained in:
Kris Maglione
2011-02-15 13:06:40 -05:00
parent 5d53adcebc
commit 5606b96957
9 changed files with 51 additions and 42 deletions

View File

@@ -1095,7 +1095,7 @@ var Commands = Module("commands", {
<forbid>
]
[^ <forbid> ]*
]]>, "g", {
]]>, "gx", {
forbid: util.regexp(String.replace(<![CDATA[
U0000-U002c // U002d -
U002e-U002f
@@ -1119,7 +1119,7 @@ var Commands = Module("commands", {
Ufe70-Ufeff // Arabic Presentation Forms-B
Uff00-Uffef // Halfwidth and Fullwidth Forms
Ufff0-Uffff // Specials
]]>, /U/g, "\\u"))
]]>, /U/g, "\\u"), "x")
}),
validName: Class.memoize(function () util.regexp("^" + this.nameRegexp.source + "$")),
@@ -1137,7 +1137,7 @@ var Commands = Module("commands", {
(?:. | \n)*?
)?
$
]]>, "", {
]]>, "x", {
name: this.nameRegexp
})),