TP-5555 | fix symbolicator

This commit is contained in:
varnit goyal
2024-11-12 17:13:47 +05:30
parent 147430a915
commit b5934765de

View File

@@ -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)