From 7404ce12a0e3aaf606164a62231a88614a445ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Tue, 6 Dec 2022 20:35:45 -0500 Subject: [PATCH] Fix stacktrace anonymous function detection --- lib/stackparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stackparser.js b/lib/stackparser.js index 54db969..db166e7 100644 --- a/lib/stackparser.js +++ b/lib/stackparser.js @@ -1,4 +1,4 @@ -const regAssertParser = /(.*?)\n+(.*?)\n+(( at.*?file:\/\/(.*?):(\d+):(\d+).*?\)).*)/s +const regAssertParser = /(.*?)\n+(.*?)\n+(( at.*?file:\/\/(.*?):(\d+):(\d+).*?\n).*)/s const stackParser = (stack) => { const m = stack.match(regAssertParser)