Open file bug on Windows
This commit is contained in:
parent
5794df245c
commit
fc2c0e4b81
|
@ -491,7 +491,7 @@ func FindHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
for _, r := range rs {
|
for _, r := range rs {
|
||||||
substr := util.Str.LCS(path, *r)
|
substr := util.Str.LCS(path, *r)
|
||||||
|
|
||||||
founds = append(founds, &foundPath{Path: *r, score: len(substr)})
|
founds = append(founds, &foundPath{Path: filepath.ToSlash(*r), score: len(substr)})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue