Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d69711c

Browse files
committed
Remove unnecessary \b. It was causing the RE to miss the tailing
slash on strings like "http://www.python.org/ is good".
1 parent 5ee24ae commit d69711c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}):
441441
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
442442
r'RFC[- ]?(\d+)|'
443443
r'PEP[- ]?(\d+)|'
444-
r'(self\.)?(\w+))\b')
444+
r'(self\.)?(\w+))')
445445
while 1:
446446
match = pattern.search(text, here)
447447
if not match: break

0 commit comments

Comments
 (0)