Skip to content

Commit 00decab

Browse files
committed
Fix Trim/Replace bug
1 parent b301f7b commit 00decab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/app_1_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func getURL(path string) string {
2121
port = int(eport)
2222
}
2323
}
24-
path = strings.ReplaceAll(strings.TrimPrefix(path, `../web/`), `\`, `/`)
24+
path = strings.TrimPrefix(strings.ReplaceAll(path, `\`, `/`), `../web/`)
2525
return fmt.Sprintf("http://localhost:%d/%s", port, path)
2626
}
2727

0 commit comments

Comments
 (0)