Skip to content

Commit c2a2838

Browse files
committed
fix(param/util): use filepath to normalize file system path
1 parent f30735f commit c2a2838

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/param/util.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package param
22

33
import (
44
"../util"
5-
"path"
65
"path/filepath"
76
"strings"
87
"unicode/utf8"
@@ -38,7 +37,7 @@ func normalizePathMaps(inputs []string) map[string]string {
3837
}
3938

4039
urlPath = util.CleanUrlPath(urlPath)
41-
fsPath = path.Clean(fsPath)
40+
fsPath = filepath.Clean(fsPath)
4241
maps[urlPath] = fsPath
4342
}
4443

0 commit comments

Comments
 (0)