1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 18:45:45 +01:00

declare res variable in template#highlightRegexp

This commit is contained in:
Doug Kearns
2008-11-27 11:49:05 +00:00
parent 665b1ede81
commit bfc1031534

View File

@@ -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);