Skip to content

Conversation

@jwakely
Copy link
Contributor

@jwakely jwakely commented Nov 12, 2025

The [ character doesn't need to be escaped.

The ] character needs to be escaped as \\] or as \] in a raw string.

This fixes warnings seen in the CI checks:

##################### Tabs check ##################
/home/runner/work/CppCoreGuidelines/CppCoreGuidelines/scripts/./python/md-split.py:184: SyntaxWarning: invalid escape sequence '\['
  sline = re.sub('[()\[\]#*]', ' ', line)

The `[` character doesn't need to be escaped.

The `]` character needs to be escaped as `\\]` or as `\]` in a raw string.
@jwakely jwakely force-pushed the fix-python-regex-warning branch from db4b499 to 8a3db35 Compare November 12, 2025 22:16
@cubbimew cubbimew merged commit 3088cf4 into isocpp:master Nov 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants