TP-5555 | fix symbolicator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user