Skip to content

Commit

Permalink
Fix Trim/Replace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gentee committed Jun 17, 2024
1 parent b301f7b commit 00decab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/app_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func getURL(path string) string {
port = int(eport)
}
}
path = strings.ReplaceAll(strings.TrimPrefix(path, `../web/`), `\`, `/`)
path = strings.TrimPrefix(strings.ReplaceAll(path, `\`, `/`), `../web/`)
return fmt.Sprintf("http://localhost:%d/%s", port, path)
}

Expand Down

0 comments on commit 00decab

Please sign in to comment.