cygri / prefix.cc

Source code to the prefix.cc website
http://prefix.cc/
The Unlicense
38 stars 10 forks source link

prefix.cc acting up on IRIs #17

Closed VladimirAlexiev closed 9 years ago

VladimirAlexiev commented 9 years ago

I'm trying to add a prefix bgcat http://bg.dbpedia.org/resource/Категория:

prefix.cc says "URI must start with http:// or https://, end in / or : or #." But it does (ends in ":")! Maybe it's disagreeing with the Cyrilllic characters?

Richard: I did a few tests and you're right, it's the non-URI characters.

cygri commented 9 years ago

A bit of progress towards fixing this.

There's an ABNF for IRIs in RFC 3987. The problem is that the ucschar seen in the iunreserved production is not reflected in the $subdomain and $path parts of the prefix.cc regex. So what needs to be done:

cygri commented 9 years ago

Fixed and deployed. See http://prefix.cc/bgcat