Hacker News new | ask | show | jobs
by written 2995 days ago
You have no guarantee that the domain part case is preserved from what the user wrote, if it's not defined to be case-sensitive. So you can do what you want, but the input data are not reliable.