Bug 573870 - Be less strict about what the path/root of an exception stack file can be [r=mconnor]

Just match anything that doesn't look like another stack file entry.
This commit is contained in:
Edward Lee 2010-06-22 16:29:47 -07:00
parent 29f095c96f
commit b3db2d2328

View File

@ -463,7 +463,7 @@ let Utils = {
// Standard JS exception
if (e.stack)
return "JS Stack trace: " + e.stack.trim().replace(/\n/g, " < ").
replace(/@(?:chrome|file):.*?([^\/\.]+\.\w+:)/g, "@$1");
replace(/@[^@]*?([^\/\.]+\.\w+:)/g, "@$1");
return "No traceback available";
},