diff --git a/lib/page.js b/lib/page.js index 885442c1..236a8072 100644 --- a/lib/page.js +++ b/lib/page.js @@ -185,7 +185,7 @@ Volcanos("page", {ClassList: { case html.SPAN: return args[2]? ""+args[1]+"": args[1] } }, Color: function(text) { if (typeof text != lang.STRING) { return "" } text = text.replace(/\\n/g, "
") - if (text.indexOf(ice.HTTP) == 0) { var ls = text.split(ice.SP); text = ""+ls[0]+""+ls.slice(1).join(ice.SP) } + if (text.indexOf(ice.HTTP) == 0 && text.length > 10) { var ls = text.split(ice.SP); text = ""+ls[0]+""+ls.slice(1).join(ice.SP) } if (text.indexOf("\033\[") == -1) { return text } text = text.replace(/\033\[31m/g, "") text = text.replace(/\033\[32m/g, "")