On Tue, May 11, 2021 at 1:00 AM TiddlyTweeter <tiddlytwee...@assays.tv> wrote:
> Mohammad wrote: > >> Hi TT, >> > > >> In my own testing so far this more minimal regex seems to work ... !! >>> >>> - pattern="^\ *(https?|ftp|file|news|data|mailto):.+$ >>> >>> Lovely! one minor comment: >> >> 1. I like to check the validity of links! So if one drops something >> like this (http.yahoo.com) or this (yahoo.come.) it wont detect this and >> will add the wrong link! >> So, I prefer a URL validator for pattern. What I sent catches all >> these and only passed the validated URL. >> > > RIGHT! > > I differ in ASSUMING the link IN is VALID. I don't want to deal with > naughty boys. > > That is part of the value of showing the TITLE & LINK for edit though, so > you can DISCARD errant boys. > Yes, this is very handy! > > Personally I am NOT inclined to parse links for perfection. > What if they are in Chinese? > Yep, that is a problem! The solution does work most of the time as you use English URL much more! > The issue with your extra parsing is it I do not think it is entirely > fair? > > Just a question!!! > > TT, x > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCt%2B7FJJZHQPMguo8Dsojyz7jA%2BW_BQkDhfmdcGtK7vgQ%40mail.gmail.com.