Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion validators/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
text_type = unicode

pattern = re.compile(
r'^(?:[a-zA-Z0-9]' # First character of the domain
r'^(?:[a-zA-Z0-9_]' # First character of the domain
r'(?:[a-zA-Z0-9-_]{0,61}[A-Za-z0-9])?\.)' # Sub domain + hostname
r'+[A-Za-z0-9][A-Za-z0-9-_]{0,61}' # First 61 characters of the gTLD
r'[A-Za-z]$' # Last character of the gTLD
Expand Down