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:
@@ -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