mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-16 20:37:03 +03:00
Fix invalid regex in scripts/python/md-split.py (#2303)
The `[` character doesn't need to be escaped. The `]` character needs to be escaped as `\\]` or as `\]` in a raw string.
This commit is contained in:
@@ -181,7 +181,7 @@ def is_inside_code(line, indent_depth):
|
|||||||
def stripped(line):
|
def stripped(line):
|
||||||
# Remove well-formed html tags, fixing mistakes by legitimate users
|
# Remove well-formed html tags, fixing mistakes by legitimate users
|
||||||
sline = TAG_REGEX.sub('', line)
|
sline = TAG_REGEX.sub('', line)
|
||||||
sline = re.sub('[()\[\]#*]', ' ', line)
|
sline = re.sub(r'[()[\]#*]', ' ', line)
|
||||||
return sline
|
return sline
|
||||||
|
|
||||||
def dedent(line, indent_depth):
|
def dedent(line, indent_depth):
|
||||||
|
|||||||
Reference in New Issue
Block a user