need greedy match on images

This commit is contained in:
Damien Elmes 2013-05-17 16:20:27 +09:00
parent 61f69fd346
commit 4aa634bc44

View file

@ -15,7 +15,7 @@ class MediaManager(object):
# other code depends on this order, so don't reorder # other code depends on this order, so don't reorder
regexps = ("(?i)(\[sound:(?P<fname>[^]]+)\])", regexps = ("(?i)(\[sound:(?P<fname>[^]]+)\])",
"(?i)(<img[^>]+src=(?P<str>[\"']?)"+ "(?i)(<img[^>]+src=(?P<str>[\"']?)"+
"(?P<fname>[^>]+?)(?P=str)[^>]*>)") "(?P<fname>[^>]+)(?P=str)[^>]*>)")
def __init__(self, col, server): def __init__(self, col, server):
self.col = col self.col = col