Skip to content

Commit 7964be5

Browse files
fix: Duplication in regular expression character class (#2166)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 388319c commit 7964be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate-language-data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
SPLIT_RE = re.compile(
1919
r"(?:\&(?:nbsp|rsaquo|lt|gt|amp|ldquo|rdquo|times|quot);|"
20-
r'[() ,.^`"\'\\/_<>!?;:|{}*^@%#&~=+\r\n✓—-…\[\]0-9-])+',
20+
r'[() ,.^`"\'\\/_<>!?;:|{}*@%#&~=+\r\n✓—-…\[\]0-9-])+',
2121
)
2222

2323
HEADER = '''# Copyright © Michal Čihař <[email protected]>

0 commit comments

Comments
 (0)