Conversation
|
Hi, Thanks for the PR! |
|
@Marsup as per the RFC the underscore could appear anywhere. In practice, I'm not aware of second-level domains that use it, but it isn't forbidden (at least not directly in the spec but each TLD can impose additional restrictions):
|
|
Trying to register a domain with an underscore doesn't seem to work in any of the registrar I've tried. Some even mention that underscore is not an allowed character. |
|
Well, that's true, but that doesn't mean much:
|
There was a problem hiding this comment.
LGTM considering some DNS providers accept the underscore in sub-domains and domains as other mentioned. At least the feature is disabled by default, it's up to the user to enable it if they want to be opened to such domains causing no harm to all users that don't care about it.
I tried that, and it didn't work for me. Maybe somebody else could play around and try to figure it out. |
|
Weird, adding |
You're right, It passed. Thanks! |
|
FYI I haven't forgotten about this PR, but since I know you're probably expecting it in joi afterwards, I need to figure out (which is mostly done) why the new address adds so much to the browser bundle, and how to come back to a better place, but this PR is valid as is. |
Adds support for underscore character (
_) in domain names. While registers don't allow it for top-level domains, it should be supported based on RFC specification, and is widely used for subdomanis (e.g. letsencrypt dns). To not break backwards compatibility - I've set it tofalse, by default.https://stackoverflow.com/a/2183140/2225918
PS I'm aware of the test coverage issue. I can't manage to get it right.