make the URI model compatible with https
authorSurkov Sergey <surkovsv93@gmail.com>
Mon, 19 Feb 2018 19:10:07 +0300
changeset 1971 62403f9b6ca9
parent 1970 b524b356aa58
child 1972 38e912c8bd31
make the URI model compatible with https
xmlclass/xmlclass.py
--- a/xmlclass/xmlclass.py	Mon Feb 19 19:02:25 2018 +0300
+++ b/xmlclass/xmlclass.py	Mon Feb 19 19:10:07 2018 +0300
@@ -67,7 +67,7 @@
 QName_model = re.compile('((?:[a-zA-Z_][\w]*:)?[a-zA-Z_][\w]*)$')
 QNames_model = re.compile('((?:[a-zA-Z_][\w]*:)?[a-zA-Z_][\w]*(?: (?:[a-zA-Z_][\w]*:)?[a-zA-Z_][\w]*)*)$')
 NCName_model = re.compile('([a-zA-Z_][\w]*)$')
-URI_model = re.compile('((?:http://|/)?(?:[\w.-]*/?)*)$')
+URI_model = re.compile('((?:htt(p|ps)://|/)?(?:[\w.-]*/?)*)$')
 LANGUAGE_model = re.compile('([a-zA-Z]{1,8}(?:-[a-zA-Z0-9]{1,8})*)$')
 
 ONLY_ANNOTATION = re.compile("((?:annotation )?)")