[Zope-Checkins] CVS: Zope2 - DocumentClass.py:1.28
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Thu, 28 Jun 2001 08:25:12 -0400
Update of /cvs-repository/Zope2/lib/python/StructuredText
In directory serenade:/home/chrism/BackTalk/lib/python/StructuredText
Modified Files:
DocumentClass.py
Log Message:
Collector #2348 - doc_href method fails to include query strings in detected URLs. Fixed two regexes. Thanks to "datagrok".
--- Updated File DocumentClass.py in package Zope2 --
--- DocumentClass.py 2001/06/26 09:29:27 1.27
+++ DocumentClass.py 2001/06/28 12:25:12 1.28
@@ -951,8 +951,8 @@
## Some constants to make the doc_href() regex easier to read.
_DQUOTEDTEXT = r'("[ %s0-9\n\r\-\.\,\;\(\)\/\:\/\*\']+")' % letters ## double quoted text
- _ABSOLUTE_URL=r'((http|https|ftp|mailto|file|about)[:/]+?[%s0-9_\@\.\,\?\!\/\:\;\-\#\~]+)' % letters
- _ABS_AND_RELATIVE_URL=r'([%s0-9_\@\.\,\?\!\/\:\;\-\#\~]+)' % letters
+ _ABSOLUTE_URL=r'((http|https|ftp|mailto|file|about)[:/]+?[%s0-9_\@\.\,\?\!\/\:\;\-\#\~\=\?]+)' % letters
+ _ABS_AND_RELATIVE_URL=r'([%s0-9_\@\.\,\?\!\/\:\;\-\#\~\=\?]+)' % letters
_SPACES = r'(\s*)'
def doc_href(self, s,