Skip to content

Commit

Permalink
Merge pull request #6 from nyuszika7h/win-space
Browse files Browse the repository at this point in the history
Treat ASCII whitespace other than normal space as invalid on Windows
  • Loading branch information
thombashi authored Dec 23, 2018
2 parents 6edace8 + 3cf2c09 commit ec04104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pathvalidate/_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class FileSanitizer(NameSanitizer):
_INVALID_PATH_CHARS = "".join(unprintable_ascii_char_list)
_INVALID_FILENAME_CHARS = _INVALID_PATH_CHARS + "/"
_INVALID_WIN_PATH_CHARS = _INVALID_PATH_CHARS + ':*?"<>|'
_INVALID_WIN_PATH_CHARS = _INVALID_PATH_CHARS + ':*?"<>|\t\n\r\x0b\x0c'
_INVALID_WIN_FILENAME_CHARS = _INVALID_FILENAME_CHARS + _INVALID_WIN_PATH_CHARS + "\\"

_ERROR_MSG_TEMPLATE = "invalid char found : invalid-char='{}', value='{}'"
Expand Down

0 comments on commit ec04104

Please sign in to comment.