Merge branch 'nbats:main' into main
This commit is contained in:
commit
01d05fac96
@ -74,7 +74,7 @@ def replace_domain_and_page(text):
|
|||||||
return text
|
return text
|
||||||
|
|
||||||
def replace_underscore_in_subsections(text):
|
def replace_underscore_in_subsections(text):
|
||||||
pattern = r'(/#[\w]+(?:_[\w]+)*)'
|
pattern = r'(/#[\w\-]+(?:_[\w]+)*)'
|
||||||
matches = re.findall(pattern, text)
|
matches = re.findall(pattern, text)
|
||||||
for match in matches:
|
for match in matches:
|
||||||
replacement = match.replace('_', '-')
|
replacement = match.replace('_', '-')
|
||||||
|
Loading…
Reference in New Issue
Block a user