Commits

David Chambers committed b6040b9

Updated `Resource#_plucktitle` to match an h1 but not an h[2-6].

Comments (0)

Files changed (1)

 
     def _plucktitle():
         subcodetags = re.compile(r'<code>(.*?)</code>').sub
-        matchheading = re.compile(r'\s*<(h[1-6])[^>]*>(?P<title>.+?)</\1>$'
+        matchheading = re.compile(r'\s*<h1[^>]*>(?P<title>.+?)</h1>$'
                                   r'(?P<html>[\s\S]*)', re.MULTILINE).match
         def plucktitle(self):
             self.title_text = self.meta.get('title', u'')