From b5934765de634963ed6fb149bbe97b218bf980bb Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Tue, 12 Nov 2024 17:13:47 +0530 Subject: [PATCH] TP-5555 | fix symbolicator --- service/ErrorProcessor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/service/ErrorProcessor.go b/service/ErrorProcessor.go index 9e8e5c8..32e5da8 100644 --- a/service/ErrorProcessor.go +++ b/service/ErrorProcessor.go @@ -78,7 +78,10 @@ func extractFilename(url string) string { // Check if the URL starts with "app:///" and remove the scheme if present this is to parse react native file names if strings.HasPrefix(url, "app:///") { - return strings.TrimPrefix(url, "app:///") + ".map" + var stringWithprefixRemoved = strings.TrimPrefix(url, "app:///") + var stringWithSuffixRemoved = strings.Split(stringWithprefixRemoved, "?")[0] + return stringWithSuffixRemoved + ".map" + } // Extract the base (filename) from the URL path filename := path.Base(url)