From bfc1031534463ff28919711e6388774750d5226c Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 27 Nov 2008 11:49:05 +0000 Subject: [PATCH] declare res variable in template#highlightRegexp --- content/template.js | 1 + 1 file changed, 1 insertion(+) diff --git a/content/template.js b/content/template.js index e0619e3b..8eda579e 100644 --- a/content/template.js +++ b/content/template.js @@ -151,6 +151,7 @@ const template = { { return this.highlightSubstrings(str, (function () { + let res; while ((res = re.exec(str)) && res[0].length) yield [res.index, res[0].length]; })(), highlight || template.filter);