Trim punctuation from end of URLs.

(cherry picked from commit 513e68a04a)
This commit is contained in:
Jeff Young
2024-06-03 18:29:37 +01:00
parent 06150388d8
commit 46b3dcba4f
+1 -1
View File
@@ -591,7 +591,7 @@ wxString RemoveHTMLTags( const wxString& aInput )
wxString LinkifyHTML( wxString aStr )
{
wxRegEx regex( wxS( "\\b(https?|ftp|file)://([-\\w+&@#/%?=~|!:,.;]*[^.<>\\s\u00b6])" ),
wxRegEx regex( wxS( "\\b(https?|ftp|file)://([-\\w+&@#/%?=~|!:,.;]*[^.,:;<>\\s\u00b6])" ),
wxRE_ICASE );
regex.ReplaceAll( &aStr, "<a href=\"\\0\">\\0</a>" );