From e02c24d15148319036af414aeea9cdb35ffdb2fd Mon Sep 17 00:00:00 2001 From: Valentin Hermann Date: Wed, 8 Jan 2020 08:47:08 +0100 Subject: [PATCH] Revert "Improves method messagePrefixLength. Now error messages like ReferenceError or TypeError are considered, too" This reverts commit 913ad50a76fb6c12f087cea6ece7c7cd5d2bb777. --- lib/jasmine-core/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index f8bb0602..25adbf80 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -7787,7 +7787,7 @@ getJasmineRequireObj().StackTrace = function(j$) { } function messagePrefixLength(message, stackLines) { - if (!stackLines[0].match(/^\w*Error/)) { + if (!stackLines[0].match(/^Error/)) { return 0; }