Exclude brackets at the end of a URL in LinkifyHTML()

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/20347
This commit is contained in:
wh201906
2025-04-15 09:37:23 -07:00
committed by Seth Hillbrand
parent a3fae053c4
commit 6d2b728fb1
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -667,7 +667,7 @@ wxString RemoveHTMLTags( const wxString& aInput )
wxString LinkifyHTML( wxString aStr )
{
static wxRegEx regex( wxS( "\\b(https?|ftp|file)://([-\\w+&@#/%?=~|!:,.;]*[^.,:;<>\\s\u00b6])" ),
static wxRegEx regex( wxS( "\\b(https?|ftp|file)://([-\\w+&@#/%?=~|!:,.;]*[^.,:;<>\\(\\)\\s\u00b6])" ),
wxRE_ICASE );
regex.ReplaceAll( &aStr, "<a href=\"\\0\">\\0</a>" );