1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 12:02:25 +01:00

Kill filterURLArray

This commit is contained in:
Kris Maglione
2008-11-29 19:46:29 +00:00
parent 92e8615207
commit 137d9cc939
4 changed files with 65 additions and 75 deletions

View File

@@ -169,8 +169,11 @@ const template = {
str = String(str).replace(" ", "\u00a0");
let s = <></>;
let start = 0;
let n = 0;
for (let [i, length] in iter)
{
if (n++ > 8)
return s + <>{str.substr(start)}</>;
XML.ignoreWhitespace = false;
s += <>{str.substring(start, i)}</>;
s += highlight(str.substr(i, length));