On Wed, May 12, 2021 at 8:45 PM TiddlyTweeter <tiddlytwee...@assays.tv>
wrote:

> Ciao Mohammad


Hi TT,

>
> I got VERY interested in what you doing on this  ...
>

Thank you!

>
> I added to the Pattern so the local system wiki could be included too ...
>
>  pattern="^\ *(\$|https?|ftp|file|news|data|mailto):.+$"
>


This is your area of expertise! I tested your proposed pattern and it works
fine for me!

>
> It is NOT a solution as the trim [] makes $: unusable.
>

The trim[] can be replaced with a remove prefix or split[], but it is the
simplest!
I did not get what the issue is with $!



> BUT my key point is that your concept behind this tool idea is
> right-on-the-ball.
>
> It is a very elegant, simple, idea that I hope will develop into a
> full-scale utility!
>



>
> Best wishes
> TT
>

Thank you TT



>
> On Tuesday, 11 May 2021 at 05:53:23 UTC+2 Mohammad wrote:
>
>> On Tue, May 11, 2021 at 1:00 AM TiddlyTweeter <tiddly...@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+...@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/0ed7f98d-0890-465e-91af-04c577b8c4d9n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/0ed7f98d-0890-465e-91af-04c577b8c4d9n%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/CAAV1gMBLwu9po%3DBGn%2B3q_EDzOMA0w%2BV1FAwtc9Y46RLCSWzohQ%40mail.gmail.com.

Reply via email to