From 3df98573b404d29c70dfc6c49b1be9042597d1bb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 18 Oct 2017 21:58:36 +1000 Subject: [PATCH] fix detection of media links in paste '.aspx' was matching the 'spx' filter --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 9d37aa1ae..bf372f8c7 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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