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. Personally I am NOT inclined to parse links for perfection. What if they are in Chinese? 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com.

