Merge pull request #9525 from ThomasWaldmann/remove-backslash-assertion
Some checks failed
Lint / lint (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled

patterns: allow backslashes in paths, fixes #9518
This commit is contained in:
TW 2026-03-19 18:56:31 +01:00 committed by GitHub
commit 8eff8270c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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