Commit 1efa47c
IDNA encoded tlds were note implemented correctly.
Some specific correct domains where previously failing (like 'somerandomwebsite.xn--fiqs8s' which is not in the tests also).
This solution has to cases for tlds:
1) Asci tlds: accepts any a-z or A-Z characters from 2 till 13 reps
2) IDNA tlds: must start with 'xn--' (ACE prefix) and then any a-z, A-Z and 0-9 from 2 till 30 reps1 parent 92cda69 commit 1efa47c
2 files changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments