diff --git a/tests/test_util.py b/tests/test_util.py
index dcb67be37..3a19a6705 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -68,10 +68,11 @@ class RegexTest(TestCase):
('', ValuePrefix, True),
('', ValuePrefix, True),
('', ValuePrefix[:-1], False),
+ ('', ValuePrefix, True),
)
def test_regex(self):
- matcher = re.compile(tagre("img", "src", "(%s.*)" % self.ValuePrefix))
+ matcher = re.compile(tagre("img", "src", '(%s[^"]*)' % self.ValuePrefix))
for tag, value, domatch in self.TagTests:
self.match_tag(matcher, tag, value, domatch)