From 0044f5319e691d9fd279e6f49b4ac09f5dc60079 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Mon, 22 Sep 2008 13:50:38 +0000 Subject: Fix (too) advanced regexp for older browsers --- itjs/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs') diff --git a/itjs/boot.js b/itjs/boot.js index 92e02f5..63ab406 100644 --- a/itjs/boot.js +++ b/itjs/boot.js @@ -14,7 +14,7 @@ function it_catcherr(msg, url, line) { if (e.stack) // Firefox { - stacktrace = e.stack.replace(/^.*?\n/,'').replace(/(?:\n@:0)?\s+$/m,'').replace(/^\(/gm,'{anonymous}(') + ';'; + stacktrace = e.stack.replace(/^[^\n]*\n/,'').replace(/(\n@)?\s+$/,'$1').replace(/^\(/g,'{anonymous}(') + ';'; callstack_done = true; } else if (window.opera && e.message) // Opera -- cgit v1.2.3