• Daniel Martí's avatar
    path/filepath: fix escaped chars in Glob on non-Windows · 03f27d5f
    Daniel Martí authored
    Backslashes are ignored in Match and Glob on Windows, since those
    collide with the separator character. However, they should still work in
    both functions on other operating systems.
    
    hasMeta did not reflect this logic - it always treated a backslash as a
    non-special character. Do that only on Windows.
    
    Assuming this is what the TODO was referring to, remove it. There are no
    other characters that scanChunk treats especially.
    
    Fixes #23418.
    
    Change-Id: Ie0bd795812e0ed9d8c8c1bbc3137f29d960cba84
    Reviewed-on: https://go-review.googlesource.com/87455
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    03f27d5f
Name
Last commit
Last update
..
example_test.go Loading commit data...
example_unix_test.go Loading commit data...
export_test.go Loading commit data...
export_windows_test.go Loading commit data...
match.go Loading commit data...
match_test.go Loading commit data...
path.go Loading commit data...
path_plan9.go Loading commit data...
path_test.go Loading commit data...
path_unix.go Loading commit data...
path_windows.go Loading commit data...
path_windows_test.go Loading commit data...
symlink.go Loading commit data...
symlink_unix.go Loading commit data...
symlink_windows.go Loading commit data...