Edge cases in domain name processing
inductiveload Mon, 05/21/2012 - 12:16
Hello, just a note that the mangling performed on the domain field at the top of logo pages is a bit over-aggressive. For example RC Components is at rswww.com, but this is processed to just "rscom". I think making sure that the "www." prefix is preceded by a space or occurs at the start of the string would help. The only case I can think of where even this would not work is www.org, which is a redirect to w3.org anyway.
Additionally, things which have no domain, such as a router name like BT HomeHub 2 are automatically lower-cased. Perhaps detecting if each part of the title (split by commas) is a valid domain (e.g. no spaces, at least one dot) before triggering the lowercasing for that part?
Thanks for the great tool and site!