fix detection of media links in paste

'.aspx' was matching the 'spx' filter
This commit is contained in:
Damien Elmes 2017-10-18 21:58:36 +10:00
parent e3885fd924
commit 3df98573b4

View file

@ -567,7 +567,7 @@ to a cloze type first, via Edit>Change Note Type."""))
def urlToFile(self, url):
l = url.lower()
for suffix in pics+audio:
if l.endswith(suffix):
if l.endswith("." + suffix):
return self._retrieveURL(url)
# not a supported type
return