go/src/path
Daniel Martí 03f27d5f58 path/filepath: fix escaped chars in Glob on non-Windows
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: Ian Lance Taylor <iant@golang.org>
2018-02-14 11:47:59 +00:00
..
filepath path/filepath: fix escaped chars in Glob on non-Windows 2018-02-14 11:47:59 +00:00
example_test.go path: add example for Match 2018-02-13 18:45:33 +00:00
match.go path: remove filename mentions from pattern godocs 2018-02-14 10:17:44 +00:00
match_test.go
path.go all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
path_test.go path: fix up bizarre test 2016-03-16 03:59:03 +00:00