https://bugs.kde.org/show_bug.cgi?id=524591

Christoph Cullmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/util
                   |                            |ities/kate/-/commit/80d0aff
                   |                            |b9686f866872bd15b9c4ba7f3d4
                   |                            |18b398
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Christoph Cullmann <[email protected]> ---
Git commit 80d0affb9686f866872bd15b9c4ba7f3d418b398 by Christoph Cullmann, on
behalf of Patrizio Bekerle.
Committed on 23/08/2026 at 17:54.
Pushed by cullmann into branch 'master'.

OpenLink: Don't include unbalanced trailing ')' in URLs

URLs wrapped in parentheses, e.g. markdown links inside parenthesized
text like "(see [label](https://example.com/page))", kept the trailing
')' in the detected link, opening a broken URL in the browser.

Strip trailing ')' characters from the match as long as the URL's
parentheses are unbalanced, so URLs that legitimately end in a balanced
paren like https://en.wikipedia.org/wiki/Link_(film) stay intact.
Also strip other trailing punctuation (', ", ., >) repeatedly instead
of just once.
Signed-off-by: Patrizio Bekerle <[email protected]>

M  +13   -0    addons/openlink/linkmatchtest.cpp
M  +19   -2    addons/openlink/matchers.h

https://invent.kde.org/utilities/kate/-/commit/80d0affb9686f866872bd15b9c4ba7f3d418b398

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to