Skip to content

Commit 254ef3c

Browse files
Update regex to match double backticks
Co-authored-by: Savannah Ostrowski <savannah@python.org>
1 parent d8f6526 commit 254ef3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/argparse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ def _apply_text_markup(self, text):
538538
return text
539539
text = _re.sub(
540540
r'`([^`]+)`',
541-
rf'{t.prog_extra}\1{t.reset}',
541+
r'(`{1,2})([^`]+)\1',
542+
rf'{t.prog_extra}\2{t.reset}',
542543
text,
543544
)
544545
return text

0 commit comments

Comments
 (0)