mirror of
https://github.com/golang/go
synced 2024-11-05 16:56:16 -07:00
go.tools/godoc: do not assume that all windows paths are delimited by os.PathSeparator (fixes build)
Fixes golang/go#9003. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://golang.org/cl/161420043
This commit is contained in:
parent
d8b266df1c
commit
30f7e63100
@ -216,7 +216,7 @@ func (h *handlerServer) includePath(path string, mode PageInfoMode) (r bool) {
|
||||
return true
|
||||
}
|
||||
if strings.Contains(path, "internal") {
|
||||
for _, c := range strings.Split(path, string(os.PathSeparator)) {
|
||||
for _, c := range strings.Split(filepath.Clean(path), string(os.PathSeparator)) {
|
||||
if c == "internal" {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user