a simple solution for #1117

This commit is contained in:
zhouji 2013-10-14 17:18:57 +08:00
commit b707727175

View file

@ -190,7 +190,7 @@ class Content(object):
instrasite_link_regex = self.settings['INTRASITE_LINK_REGEX']
regex = r"""
(?P<markup><\s*[^\>]* # match tag with src and href attr
(?:href|src)\s*=)
(?:href|src|poster)\s*=)
(?P<quote>["\']) # require value to be quoted
(?P<path>{0}(?P<value>.*?)) # the url value