💾 Archived View for rawtext.club › ~sloum › geminilist › 002246.gmi captured on 2020-09-24 at 01:20:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- back to the mailing list

question about links parsing

Katarina Eriksson gmym at coopdot.com

Sat Jul 18 10:18:38 BST 2020

- - - - - - - - - - - - - - - - - - - 

cage <cage-dev at twistfold.it> wrote:

On Fri, Jul 17, 2020 at 11:45:28AM -0400, Matthew Graybosch wrote:
If each terms after the url was optional i expect the specs was
something like:
=
[<whitespace>]<URL>[<whitespace>][<USER-FRIENDLY LINK NAME>]

That one makes the whitespace separator between <URL> and <USER-FRIENDLYLINK NAME> optional, making it hard to parse.

This is what you were looking for:

=

[<whitespace>]<URL>[<whitespace>[<USER-FRIENDLY LINK NAME>]]

However, I think it's reasonable to assume the ending whitespace wasunintentional and ignore it.

Postel's law:

Be conservative in what you do, be liberal in what you accept fromothers

-- Katarina

-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200718/22cd3695/attachment.htm>