[CMF-checkins] CVS: CMF - utils.py:1.5
Jeffrey Shell
jeffrey@digicool.com
Tue, 29 May 2001 10:47:51 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault
Modified Files:
utils.py
Log Message:
Improved the 'htfinder' regular expression to be a bit quicker.
--- Updated File utils.py in package CMF --
--- utils.py 2001/05/25 02:22:48 1.4
+++ utils.py 2001/05/29 14:47:50 1.5
@@ -138,7 +138,7 @@
bodyfinder = re.compile(r'<body.*?>(?P<bodycontent>.*?)</body>',
re.DOTALL|re.I)
-htfinder = re.compile(r'<html.*?>', re.DOTALL|re.I)
+htfinder = re.compile(r'<html', re.DOTALL|re.I)
def html_headcheck(html):
""" Returns 'true' if document looks HTML-ish enough """