File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 99 'xn----gtbspbbmkef.xn--p1ai' ,
1010 'underscore_subdomain.example.com' ,
1111 'something.versicherung' ,
12+ 'someThing.versicherung' ,
1213 '11.com' ,
1314 '3.cn' ,
1415 'a.cn' ,
Original file line number Diff line number Diff line change 1111 text_type = unicode
1212
1313pattern = re .compile (
14- r'^(?:[a-z0 -9]' # First character of the domain
15- r'(?:[a-z0- 9-_]{0,61}[a -z0-9])?\.)' # Sub domain + hostname
16- r'+[a- z0-9][a -z0-9-_]{0,61}' # First 61 characters of the gTLD
17- r'[a -z]$' # Last character of the gTLD
14+ r'^(?:[a-zA-Z0 -9]' # First character of the domain
15+ r'(?:[a-zA-Z0- 9-_]{0,61}[A-Za -z0-9])?\.)' # Sub domain + hostname
16+ r'+[A-Za- z0-9][A-Za -z0-9-_]{0,61}' # First 61 characters of the gTLD
17+ r'[A-Za -z]$' # Last character of the gTLD
1818)
1919
2020
You can’t perform that action at this time.
0 commit comments