Logging not working properly. fix #50

This commit is contained in:
Ruud
2011-10-17 14:07:41 +02:00
parent f248d5812b
commit 2c4c36fadb
5 changed files with 13 additions and 88 deletions
+4 -4
View File
@@ -64,10 +64,10 @@ Page.Log = new Class({
addColors: function(text){
var self = this;
text = text.replace(/\u001b\[31m\u001b\[31m/gi, '</span><span class="error">')
text = text.replace(/\u001b\[36m\u001b\[36m/gi, '</span><span class="debug">')
text = text.replace(/\u001b\[0m\u001b\[0m\n/gi, '</span><span class="time">')
text = text.replace(/\u001b\[0m\u001b\[0m/gi, '</span><span>')
text = text.replace(/\u001b\[31m/gi, '</span><span class="error">')
text = text.replace(/\u001b\[36m/gi, '</span><span class="debug">')
text = text.replace(/\u001b\[0m\n/gi, '</span><span class="time">')
text = text.replace(/\u001b\[0m/gi, '</span><span>')
return '<span class="time">' + text + '</span>';
}