Skip to content

Commit

Permalink
Support URLs with non-alphanumeric character
Browse files Browse the repository at this point in the history
Fix the issue pcman-bbs#73.
When detecting an URL, allow both alphanumeric and non-alphanumeric characters.
  • Loading branch information
hwangcc23 committed Mar 29, 2016
1 parent 40337e3 commit e6b387c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/termdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
{
Expand Down

0 comments on commit e6b387c

Please sign in to comment.