We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 243592b commit 7922e82Copy full SHA for 7922e82
1 file changed
lib/logger.js
@@ -7,7 +7,7 @@ const clustering = require('./clustering');
7
const categories = require('./categories');
8
const configuration = require('./configuration');
9
10
-const stackReg = /at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;
+const stackReg = /^(?:\s*) at (?:(.+) \()?(?:([^(]+?):(\d+):(\d+))\)?$/;
11
/**
12
* The top entry is the Error
13
*/
@@ -36,7 +36,7 @@ function defaultParseCallStack(
36
}
37
const lineMatch = stackReg.exec(stacklines[0]);
38
/* istanbul ignore else: failsafe */
39
- if (lineMatch && lineMatch.length === 6) {
+ if (lineMatch && lineMatch.length === 5) {
40
// extract class, function and alias names
41
let className = '';
42
let functionName = '';
0 commit comments