Skip to content

Commit db1fb83

Browse files
committed
refactor: revert rename of an internal function
1 parent badc546 commit db1fb83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkdocs_site_urls/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ def on_page_content(self, html, page, config, files):
3838
site_url += "/"
3939
path = urllib.parse.urlparse(site_url).path
4040

41-
def _replacer(match):
41+
def _replace(match):
4242
attribute = match.group(1)
4343
url = match.group(3)
4444

4545
logger.info(f"Replacing absolute url '{self.prefix}{url}' with '{path}{url}'")
4646
return f'{attribute}="{path}{url}"'
4747

48-
return self._regex.sub(_replacer, html)
48+
return self._regex.sub(_replace, html)

0 commit comments

Comments
 (0)