mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-20 19:55:48 +01:00
Require "x" flag in util.regexp for "extended" regex processing.
This commit is contained in:
@@ -349,7 +349,7 @@ var Template = Module("Template", {
|
||||
(?P<pre> [/\s]|^)
|
||||
(?P<tag> '[\w-]+' | :(?:[\w-]+|!) | (?:._)?<[\w-]+> )
|
||||
(?= [[\)!,;./\s]|$)
|
||||
]]>, "g");
|
||||
]]>, "gx");
|
||||
return this.highlightSubstrings(str, (function () {
|
||||
for (let res in re.iterate(str))
|
||||
yield [res.index + res.pre.length, res.tag.length];
|
||||
|
||||
Reference in New Issue
Block a user