Commits

ezio.melotti  committed a6a1cc5

Tweak PEP regex to prevent linkification in URLs.

  • Participants
  • Parent commits 0924913

Comments (0)

Files changed (2)

File extensions/local_replace.py

      make_traceback_link),
 
     # PEP 8, PEP8, PEP 0008, ...
-    (re.compile(r'PEP\s*(\d{1,4})\b', re.I),
+    (re.compile(r'\b(?<!/)PEP\s*(\d{1,4})\b', re.I),
      make_pep_link),
 
     # devguide

File extensions/test/local_replace_data.txt

 see PEP 15000
 write a PEP!
 write a PEP!
+http://wiki.python.org/moin/SummerOfCode/2011/PEP393
+<a href="http://wiki.python.org/moin/SummerOfCode/2011/PEP393">http://wiki.python.org/moin/SummerOfCode/2011/PEP393</a>
 ##
 ##
 see the devguide.