From 5606b9695704c87406feba251e35cef71c8529b1 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 15 Feb 2011 13:06:40 -0500 Subject: Require "x" flag in util.regexp for "extended" regex processing. --- common/modules/template.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/modules/template.jsm') 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
 [/\s]|^)
             (?P '[\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];
-- 
cgit v1.2.3