Commits

Reimar Bauer committed fadf4af Draft

_tests.settings: extract_regex fixed

  • Participants
  • Parent commits f78e6a0

Comments (0)

Files changed (1)

File Coconuts/_tests/settings.py

     last_change_regex = re.compile(ur"""<hr>.(?P<date>\w*)-(?P<month>\w*)-(?P<year>\w*).*""",
                                              re.DOTALL)
     # regex used for extracting
-    extract_regex = re.compile(ur'<h1 id="Working_With_Images">(?P<value>.*)<h2 id="Thumbnail_of_an_Image">',
+    extract_regex = re.compile(ur'(?ims)<h1 id="Working_With_Images">(?P<value>.*)<h2 id="Thumbnail_of_an_Image">',
                                re.MULTILINE | re.UNICODE)
     # regex for extracting images from example HelpOnImages.html
     img_regex = re.compile(ur'src="(?P<value>\S*)"', re.MULTILINE | re.UNICODE)
+