You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using this library and noticing some odd results around white space. When the white space is leading or trailing, I do not get any matches.
# Leading whitespace does not match>>>pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, [' whitespace.txt']).match_file(' whitespace.txt')
False# Trailing whitespace does not match>>>pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, ['whitespace.txt ']).match_file('whitespace.txt ')
False
It seems to have no problem with whitespace internal to a string.
Can you help me understand what is going on here? Both whitespace.txt and whitespace.txt are valid file names so I would like to figure out why I can't match them.
The text was updated successfully, but these errors were encountered:
Hello, I am using this library and noticing some odd results around white space. When the white space is leading or trailing, I do not get any matches.
It seems to have no problem with whitespace internal to a string.
Can you help me understand what is going on here? Both
whitespace.txt
andwhitespace.txt
are valid file names so I would like to figure out why I can't match them.The text was updated successfully, but these errors were encountered: