mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 10:55:45 +01:00
Small fixes. Add Components to list of magical JS global properties.
--HG-- extra : rebase_source : ba08f90f02d5362108cfbffd2f9ce9a89d8e905e
This commit is contained in:
@@ -184,7 +184,7 @@ const Template = Module("Template", {
|
||||
let n = 0;
|
||||
for (let [i, length] in iter) {
|
||||
if (n++ > 50) // Prevent infinite loops.
|
||||
return s + <>{str.substr(start)}</>;
|
||||
break;
|
||||
XML.ignoreWhitespace = false;
|
||||
s += <>{str.substring(start, i)}</>;
|
||||
s += highlight(str.substr(i, length));
|
||||
|
||||
Reference in New Issue
Block a user