Skip to content

Commit aecf831

Browse files
committed
Replace |project| RST substitution @ change logs
1 parent fd86654 commit aecf831

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packaging/pep517_backend/_transformers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def sanitize_rst_roles(rst_source_text: str) -> str:
8181
"""
8282
substitution_pattern = r"``\g<rendered_text>``"
8383

84+
project_substitution_regex = r"\|project\|"
85+
project_substitution_pattern = "yarl"
86+
8487
substitutions = (
8588
(pep_role_regex, pep_substitution_pattern),
8689
(user_role_regex, user_substitution_pattern),
@@ -90,6 +93,7 @@ def sanitize_rst_roles(rst_source_text: str) -> str:
9093
(gh_role_regex, gh_substitution_pattern),
9194
(meth_role_regex, meth_substitution_pattern),
9295
(role_regex, substitution_pattern),
96+
(project_substitution_regex, project_substitution_pattern),
9397
)
9498

9599
rst_source_normalized_text = rst_source_text

0 commit comments

Comments
 (0)