Ticket #15229: diff.txt

File diff.txt, 553 bytes (added by codefisher, 13 years ago)
Line 
1Index: django/core/validators.py
2===================================================================
3--- django/core/validators.py (revision 15438)
4+++ django/core/validators.py (working copy)
5@@ -40,7 +40,7 @@
6
7 class URLValidator(RegexValidator):
8 regex = re.compile(
9- r'^https?://' # http:// or https://
10+ r'^(?:http|ftp)s?://' # http:// or https://
11 r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?|' #domain...
12 r'localhost|' #localhost...
13 r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip
Back to Top