modern-uri icon indicating copy to clipboard operation
modern-uri copied to clipboard

Support for CID URIs

Open moll opened this issue 1 year ago • 2 comments

Hey,

Thanks for maintaining Modern URI!

I'm trying to parse and handle "cid" URIs and noticed Modern URI escapes the "@" when rendering. From RFC 2392 it seems to me the "cid" scheme path part ought to follow RFC 822's addr-spec and that states an unescaped "@".

Does Modern URI need another if in Render.hs, or, I wonder, is there a more general solution?: https://github.com/mrkkrp/modern-uri/blob/7c3a118cddf3c9dd1e2745e4d6c5fed33ef4ff6d/Text/URI/Render.hs#L340-L349

Thanks!

moll avatar Mar 05 '25 10:03 moll

Hi, I think this needs another scheme-specific override in the code block you quote. Would you like to open a PR for this?

mrkkrp avatar Mar 12 '25 12:03 mrkkrp

Thanks! I hope to eventually get to this, too. :)

moll avatar Apr 09 '25 10:04 moll