This commit is contained in:
algonell 2024-09-09 15:58:26 +03:00 committed by GitHub
parent df4f0cbfad
commit 9017b95ff2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 59 additions and 59 deletions

View file

@ -2503,7 +2503,7 @@ class ReTests(unittest.TestCase):
self.assertEqual(re.search(r'12(?!)|3', '123')[0], '3')
def test_character_set_any(self):
# The union of complementary character sets mathes any character
# The union of complementary character sets matches any character
# and is equivalent to "(?s:.)".
s = '1x\n'
for p in r'[\s\S]', r'[\d\D]', r'[\w\W]', r'[\S\s]', r'\s|\S':