mirror of
https://github.com/django/django.git
synced 2024-12-30 21:16:26 +00:00
2e65d56156
This adds support for authentication data (`user:password`) in URLs, IPv6 addresses, and unicode domains. The test suite has been improved by adding test URLs from http://mathiasbynens.be/demo/url-regex (with a few adjustments, like allowing local and reserved IPs). The previous URL validation regex failed this test suite on 13 occasions, the validator was updated based on https://gist.github.com/dperini/729294.
64 lines
1.8 KiB
Plaintext
64 lines
1.8 KiB
Plaintext
http://www.djangoproject.com/
|
|
HTTP://WWW.DJANGOPROJECT.COM/
|
|
http://localhost/
|
|
http://example.com/
|
|
http://example.com./
|
|
http://www.example.com/
|
|
http://www.example.com:8000/test
|
|
http://valid-with-hyphens.com/
|
|
http://subdomain.example.com/
|
|
http://200.8.9.10/
|
|
http://200.8.9.10:8000/test
|
|
http://su--b.valid-----hyphens.com/
|
|
http://example.com?something=value
|
|
http://example.com/index.php?something=value&another=value2
|
|
https://example.com/
|
|
ftp://example.com/
|
|
ftps://example.com/
|
|
http://foo.com/blah_blah
|
|
http://foo.com/blah_blah/
|
|
http://foo.com/blah_blah_(wikipedia)
|
|
http://foo.com/blah_blah_(wikipedia)_(again)
|
|
http://www.example.com/wpstyle/?p=364
|
|
https://www.example.com/foo/?bar=baz&inga=42&quux
|
|
http://✪df.ws/123
|
|
http://userid:password@example.com:8080
|
|
http://userid:password@example.com:8080/
|
|
http://userid@example.com
|
|
http://userid@example.com/
|
|
http://userid@example.com:8080
|
|
http://userid@example.com:8080/
|
|
http://userid:password@example.com
|
|
http://userid:password@example.com/
|
|
http://142.42.1.1/
|
|
http://142.42.1.1:8080/
|
|
http://➡.ws/䨹
|
|
http://⌘.ws
|
|
http://⌘.ws/
|
|
http://foo.com/blah_(wikipedia)#cite-1
|
|
http://foo.com/blah_(wikipedia)_blah#cite-1
|
|
http://foo.com/unicode_(✪)_in_parens
|
|
http://foo.com/(something)?after=parens
|
|
http://☺.damowmow.com/
|
|
http://code.google.com/events/#&product=browser
|
|
http://j.mp
|
|
ftp://foo.bar/baz
|
|
http://foo.bar/?q=Test%20URL-encoded%20stuff
|
|
http://مثال.إختبار
|
|
http://例子.测试
|
|
http://उदाहरण.परीक्षा
|
|
http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com
|
|
http://1337.net
|
|
http://a.b-c.de
|
|
http://223.255.255.254
|
|
ftps://foo.bar/
|
|
http://10.1.1.254
|
|
http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html
|
|
http://[::192.9.5.5]/ipng
|
|
http://[::ffff:192.9.5.5]/ipng
|
|
http://[::1]:8080/
|
|
http://0.0.0.0/
|
|
http://255.255.255.255
|
|
http://224.0.0.0
|
|
http://224.1.1.1
|