diff --git a/.github/replace-links-to-fmhy-in-files-in-current-dir.py b/.github/replace-links-to-fmhy-in-files-in-current-dir.py index 84bb3cc66..2955832c0 100644 --- a/.github/replace-links-to-fmhy-in-files-in-current-dir.py +++ b/.github/replace-links-to-fmhy-in-files-in-current-dir.py @@ -74,7 +74,7 @@ def replace_domain_and_page(text): return text def replace_underscore_in_subsections(text): - pattern = r'(/#[\w]+(?:_[\w]+)*)' + pattern = r'(/#[\w\-]+(?:_[\w]+)*)' matches = re.findall(pattern, text) for match in matches: replacement = match.replace('_', '-')