[Zope-Checkins] CVS: Zope/lib/python/StructuredText - DocumentWithImages.py:1.7
Chris McDonough
chrism@zope.com
Sat, 8 Jun 2002 14:32:12 -0400
Update of /cvs-repository/Zope/lib/python/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv21910
Modified Files:
DocumentWithImages.py
Log Message:
Allow underscores in link filenames.
=== Zope/lib/python/StructuredText/DocumentWithImages.py 1.6 => 1.7 ===
self, s,
expr1=re.compile('\"([ _a-zA-Z0-9*.:/;,\-\n\~]+)\":img:([a-zA-Z0-9\_\-.:/;,\n\~]+)').search,
- expr2=re.compile('\"([ _a-zA-Z0-9*.:/;,\-\n\~]+)\":img:([a-zA-Z0-9\_\-.:/;,\n\~]+):([a-zA-Z0-9\-.:/;,\n\~]+)').search
+ expr2=re.compile('\"([ _a-zA-Z0-9*.:/;,\-\n\~]+)\":img:([a-zA-Z0-9\_\-.:/;,\n\~]+):([a-zA-Z0-9_\-.:/;,\n\~]+)').search
):
r = expr2(s)