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