Re:In search of the perfect URL validation regex
by X-Istence on Sunday June 22, 2014 @11:32PM
(#7930088)
It's the same way with http://💩.la/ it gets turned into the following using IDNA: xn--ls8h.la.
That is a valid domain name and should be treated as such.
Re:In search of the perfect URL validation regex
by Buge on Saturday June 28, 2014 @12:40AM
(#7957438)
I guess you could argue the definition of "valid". According to the RFC it's
DISALLOWED: Those that should clearly not be included in IDNs. Code points with this property value are not permitted in IDNs.
[1] http://www.fileformat.info/info/unicode/char/272a/index.htm
[2] http://tools.ietf.org/html/rfc5892
[3] http://daringfireball.net/2010/09/starstruck