Closed AlainODea closed 5 years ago
Also domains with leading numbers are also broken. Sorry :sweat_smile:
The leading numbers are broken because the lexer doesn't allow mixed numbers and letters in a single GENERIC and my code blocks consecutive generic RFC 5322 section 3.2.3 defines atext in a way that explicitly allows that. I've corrected the regex and it passes all of the existing tests. I'm going to write some additional test cases to mitigate the risk that I break something new again.
In fixing one issue with hyphens, I created another.
Domains like has-hyphen.example.com will fail with a stacktrace like this:
I'll follow up with a fix.