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

View Raw

More Information

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

<-- back to the mailing list

question about links parsing

cage cage-dev at twistfold.it

Sat Jul 18 13:28:21 BST 2020

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

On Sat, Jul 18, 2020 at 11:18:38AM +0200, Katarina Eriksson wrote:

Hi!

cage <cage-dev at twistfold.it> 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-FRIENDLY> LINK NAME
optional, making it hard to parse.
This is what you were looking for:
=
[<whitespace>]<URL>[<whitespace>[<USER-FRIENDLY LINK NAME>]]

Yes i was wrong! Thank you for correcting what i wrote. :)

However, I think it's reasonable to assume the ending whitespace was
unintentional and ignore it.
Postel's law:
Be conservative in what you do, be liberal in what you accept from
others

I was not able to remember the name of this law, thank you!

What disturbs me is that now my parser does not follow the grammar thespecs describe anymore; but this is just some personal thing that ihave to accept someway, i guess! :)

Bye!C.