Merge pull request #31 from navi-ppl/TP-5555/hotfix-symbolicator

TP-5555 | fix symbolicator
This commit is contained in:
Varnit Goyal
2024-11-12 17:16:21 +05:30
committed by GitHub

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)