Trim punctuation from end of URLs.
(cherry picked from commit 513e68a04a
)
This commit is contained in:
parent
06150388d8
commit
46b3dcba4f
|
@ -591,7 +591,7 @@ wxString RemoveHTMLTags( const wxString& aInput )
|
||||||
|
|
||||||
wxString LinkifyHTML( wxString aStr )
|
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 );
|
wxRE_ICASE );
|
||||||
|
|
||||||
regex.ReplaceAll( &aStr, "<a href=\"\\0\">\\0</a>" );
|
regex.ReplaceAll( &aStr, "<a href=\"\\0\">\\0</a>" );
|
||||||
|
|
Loading…
Reference in New Issue