Dulwich.io dulwich / 5219d79
ignore: question mark should not match slash pared authored 5 months ago Jelmer Vernooń≥ committed 5 months ago
2 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3737 if c == b'*':
3838 res += b'[^/]*'
3939 elif c == b'?':
40 res += b'.'
40 res += b'[^/]'
4141 elif c == b'[':
4242 j = i
4343 if j < n and segment[j:j+1] == b'!':
6464 (b"foo/foo.c", b"/*.c"),
6565 (b"foo/bar/", b"/bar/"),
6666 (b"foo/bar/", b"foo/bar/*"),
67 (b"foo/bar", b"foo?bar")
6768 ]
6869
6970