repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git]
/
resources
/
src
/
mediawiki
/
mediawiki.Uri.loose.regexp
blob
300ab3bacf353f821094b5c3529c4788fcde67ea
1
^
2
(?:
3
(?![^:@]+:[^:@/]*@)
4
(?<protocol>[^:/?#.]+):
5
)?
6
(?://)?
7
(?:(?:
8
(?<user>[^:@/?#]*)
9
(?::(?<password>[^:@/?#]*))?
10
)?@)?
11
(?<host>[^:/?#]*)
12
(?::(?<port>\d*))?
13
(
14
(?:/
15
(?:[^?#]
16
(?![^?#/]*\.[^?#/.]+(?:[?#]|$))
17
)*/?
18
)?
19
[^?#/]*
20
)
21
(?:\?(?<query>[^#]*))?
22
(?:\#(?<fragment>.*))?