mirror of https://github.com/docker/docs.git
Merge pull request #20009 from anusha-ragunathan/to-slash
Fix ReadAll to run on Windows.
This commit is contained in:
commit
675fe313ee
|
@ -25,6 +25,7 @@ func ReadAll(reader io.ReadCloser) ([]string, error) {
|
|||
continue
|
||||
}
|
||||
pattern = filepath.Clean(pattern)
|
||||
pattern = filepath.ToSlash(pattern)
|
||||
excludes = append(excludes, pattern)
|
||||
}
|
||||
if err := scanner.Err(); err != nil {
|
||||
|
|
Loading…
Reference in New Issue