mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 19:00:44 -04:00
patterns: allow backslashes in paths, fixes #9518
On all POSIX systems, a backslash is a normal character in filenames and not a path separator.
This commit is contained in:
parent
742978911c
commit
2ac51d71cf
1 changed files with 0 additions and 1 deletions
|
|
@ -295,7 +295,6 @@ class RegexPattern(PatternBase):
|
|||
self.regex = re.compile(pattern)
|
||||
|
||||
def _match(self, path):
|
||||
assert "\\" not in path
|
||||
return self.regex.search(path) is not None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue