Trim punctuation from end of URLs.

(cherry picked from commit 513e68a04a)
This commit is contained in:
Jeff Young 2024-05-27 17:04:15 +01:00
parent 06150388d8
commit 46b3dcba4f
1 changed files with 1 additions and 1 deletions

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>" );