From 513e68a04ac1534af235ba6570ebd966baf396b1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 27 May 2024 17:04:15 +0100 Subject: [PATCH] Trim punctuation from end of URLs. --- common/string_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/string_utils.cpp b/common/string_utils.cpp index f10e9d5c8d..fbd027a6a9 100644 --- a/common/string_utils.cpp +++ b/common/string_utils.cpp @@ -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, "\\0" );