please improve url parser

Solved bugs are moved into this topic...
Post Reply
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

please improve url parser

Post 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
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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.
Post Reply