diff --git a/packages/karma/src/karma.conf.js b/packages/karma/src/karma.conf.js index 9a859c4c1b..f0ebabc998 100644 --- a/packages/karma/src/karma.conf.js +++ b/packages/karma/src/karma.conf.js @@ -418,7 +418,7 @@ try { // This is a bazel specific formatError that removes the workspace // name from stack traces. // Look for filenames of the format "(::" - const FILENAME_REGEX = /\(([^:]+)(:\d+:\d+)/gm; + const FILENAME_REGEX = /\(([^:\n\r]+)(:\d+:\d+)/gm; msg = msg.replace(FILENAME_REGEX, (_, p1, p2) => { if (p1.startsWith('../')) { // Remove all leading "../"