Page 1 of 1

please improve url parser

Posted: 21.09.2022 00:37
by lookoutside
Url can be opened from cudatext directly. It's convenient only if the url is recognized. But some urls are broken by cudatext even when they are normal for firefox/edge/chrome.

For example the following url breaks at ``!``.


https://vnotex.github.io/vnote/zh_cn/#! ... BAVNote.md

In other words, cudatext short the url to :

Code: Select all

https://vnotex.github.io/vnote/zh_cn/#
I will update some examples if I find them.

thank you

Posted: 21.09.2022 04:06
by main Alexey
fixed for this case.
to test:
open Options Editor plugin, enter for "links_regex":

Code: Select all

\b(mailto:)?\w[\w\-\+\.]*@\w[\w\-\.]*\.\w{2,}\b|\b(https?://|ftp://|magnet:\?|www\.|ftp\.)\w[\w\-\.@]*(:\d+)?(/[~\w\.\-\+\/%@!%\#]*)?(\?[^<>'"\s]+)?(\#[\w\-%]*)?
give more examples, pls.