summaryrefslogtreecommitdiff
path: root/common/modules/template.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-02-15 13:06:40 -0500
committerKris Maglione <maglione.k@gmail.com>2011-02-15 13:06:40 -0500
commit5606b9695704c87406feba251e35cef71c8529b1 (patch)
treeda58e4ab4a678664d3e903c023740157ebe33418 /common/modules/template.jsm
parent5d53adcebca4f2bf7df5740c0cc7af65c47a80b5 (diff)
downloadpentadactyl-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.jsm2
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];