diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-02-15 13:06:40 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-02-15 13:06:40 -0500 |
commit | 5606b9695704c87406feba251e35cef71c8529b1 (patch) | |
tree | da58e4ab4a678664d3e903c023740157ebe33418 /common/modules/template.jsm | |
parent | 5d53adcebca4f2bf7df5740c0cc7af65c47a80b5 (diff) | |
download | pentadactyl-5606b9695704c87406feba251e35cef71c8529b1.tar.gz |
Require "x" flag in util.regexp for "extended" regex processing.
Diffstat (limited to 'common/modules/template.jsm')
-rw-r--r-- | common/modules/template.jsm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/template.jsm b/common/modules/template.jsm index be1e5ab7..42220bba 100644 --- a/common/modules/template.jsm +++ b/common/modules/template.jsm @@ -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]; |