mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove unnecessary \b. It was causing the RE to miss the tailing
slash on strings like "http://www.python.org/ is good".
This commit is contained in:
parent
5ee24ae98d
commit
d69711cb1e
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
|
||||||
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
|
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
|
||||||
r'RFC[- ]?(\d+)|'
|
r'RFC[- ]?(\d+)|'
|
||||||
r'PEP[- ]?(\d+)|'
|
r'PEP[- ]?(\d+)|'
|
||||||
r'(self\.)?(\w+))\b')
|
r'(self\.)?(\w+))')
|
||||||
while 1:
|
while 1:
|
||||||
match = pattern.search(text, here)
|
match = pattern.search(text, here)
|
||||||
if not match: break
|
if not match: break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue