Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git] / resources / src / mediawiki / mediawiki.Uri.loose.regexp
blob300ab3bacf353f821094b5c3529c4788fcde67ea
2 (?:
3         (?![^:@]+:[^:@/]*@)
4         (?<protocol>[^:/?#.]+):
5 )?
6 (?://)?
7 (?:(?:
8         (?<user>[^:@/?#]*)
9         (?::(?<password>[^:@/?#]*))?
10 )?@)?
11 (?<host>[^:/?#]*)
12 (?::(?<port>\d*))?
14         (?:/
15                 (?:[^?#]
16                         (?![^?#/]*\.[^?#/.]+(?:[?#]|$))
17                 )*/?
18         )?
19         [^?#/]*
21 (?:\?(?<query>[^#]*))?
22 (?:\#(?<fragment>.*))?