Skip to content

Commit e0a65be

Browse files
committed
Merge pull request #3 from highb/fix/master/trailing-slash
Trailing slash should catch directories
2 parents 6ee8b22 + 9cb14f1 commit e0a65be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pathspec/gitignore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__(self, pattern):
100100
elif i == end:
101101
# A normalized pattern ending with double-asterisks ('**')
102102
# will match any trailing path segments.
103-
regex.append('/.+')
103+
regex.append('/.*')
104104
else:
105105
# A pattern with inner double-asterisks ('**') will match
106106
# multiple (or zero) inner path segments.

0 commit comments

Comments
 (0)