mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 06:32:29 +02:00
declare res variable in template#highlightRegexp
This commit is contained in:
1 parent
665b1ede81
commit
bfc1031534
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user