On Mon, May 10, 2021 at 4:04 PM TiddlyTweeter <[email protected]>
wrote:

> Ciao Mohammad


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.
2. It does not recognize file
3. Regarding the data of access, yes you can remove it, but I think APA7
recommend having the access date!




> With something like this ...
>
>    - {{{ [<url>trim[https://]trim[http://]trim[www.]trim[ftp://
>    ]trim[file:///]trim[news:]trim[mailto:]split[/]!is[blank]first[]join[.]]
>    }}}
>
> Any of those protocols a user does not support yet in a browser should be
> prompted for by the BROWSER.
>
> Just a comment. NOT fully tested yet but seems okay so far.
> TT
>
> --
> 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/0894700b-b0b7-436a-b662-02dea0fd8a56n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/0894700b-b0b7-436a-b662-02dea0fd8a56n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMD-O2s0wwxTXTyFhNgBxS9N8XULq-dhJ4URm-RHafA%2BsQ%40mail.gmail.com.

Reply via email to