From e6b387c35f41998d9e9d17ec946d37c9bc84a7e9 Mon Sep 17 00:00:00 2001 From: hwangcc23 Date: Tue, 29 Mar 2016 23:51:20 +0800 Subject: [PATCH] Support URLs with non-alphanumeric character Fix the issue #73. When detecting an URL, allow both alphanumeric and non-alphanumeric characters. --- src/core/termdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/termdata.cpp b/src/core/termdata.cpp index 7c03794f..c02a746a 100644 --- a/src/core/termdata.cpp +++ b/src/core/termdata.cpp @@ -955,7 +955,7 @@ inline void DetectCommonURLs( const char *line, CTermCharAttr *attr, int len ) stage = 0; break; case STAGE_HIGHLIGHT_HYPERLINK: // This is a valid URL. - if( !isurl(ch) ) + if( isspace(ch) ) { for( ; ilink < col; ilink++ ) {