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
Родитель db7fbb993d
Коммит 736c131289
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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";
},