diff options
author | Thomas BrĂ¼derli | 2008-09-22 13:50:38 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2008-09-22 13:50:38 +0000 |
commit | 0044f5319e691d9fd279e6f49b4ac09f5dc60079 (patch) | |
tree | 4de4e516b79aea15dcd92517891d68e1f3feb436 /itjs | |
parent | 99bd6cb3a4e967c1d7c4842922f86322a4440fdb (diff) | |
download | itools-0044f5319e691d9fd279e6f49b4ac09f5dc60079.tar.gz itools-0044f5319e691d9fd279e6f49b4ac09f5dc60079.tar.bz2 itools-0044f5319e691d9fd279e6f49b4ac09f5dc60079.zip |
Fix (too) advanced regexp for older browsers
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/boot.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |