From 5db68f9f41d2c002eee621e50337413b8ff8ca72 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 29 Jun 2009 14:14:40 +0900 Subject: [PATCH] allow https urls too --- ankiqt/ui/modelproperties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 1d3e33625..dc019cd49 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -471,7 +471,7 @@ order by n""", id=card.id) unicode(self.dialog.tags.text())) url = unicode(self.dialog.mediaURL.text()) if url: - if not re.match("^(http|ftp)://", url, re.I): + if not re.match("^(http|https|ftp)://", url, re.I): url = "http://" + url if not url.endswith("/"): url += "/"