From 66cf5678134149e7e7dc2dd32149a1e38bd0fb8b Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Wed, 17 Oct 2001 04:01:46 +0000 Subject: [PATCH] Added few URL terminators --- golded3/gectnr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golded3/gectnr.cpp b/golded3/gectnr.cpp index 554112e..ef73274 100644 --- a/golded3/gectnr.cpp +++ b/golded3/gectnr.cpp @@ -122,7 +122,7 @@ void Container::StyleCodeHighlight(const char* text, int row, int col, bool dohi if(not strnicmp(ptr, "http://", 7) or not strnicmp(ptr, "ftp://", 6) or not strnicmp(ptr, "www.", 4) or not strnicmp(ptr, "ftp.", 4) or not strnicmp(ptr, "mailto:", 7)) { - const char *end = ptr+4+strcspn(ptr+4, " \t\"\'<>"); + const char *end = ptr+4+strcspn(ptr+4, " \t\"\'<>()[]"); strxcpy(buf, txptr, (uint)(ptr-txptr)+1); prints(row, col+sclen, color, buf); @@ -144,7 +144,7 @@ void Container::StyleCodeHighlight(const char* text, int row, int col, bool dohi } } else { - commerce_at = strpbrk(ptr, " \t@"); + commerce_at = strpbrk(ptr, " \t:@"); } if ((commerce_at != NULL) and (*commerce_at == '@')) { ++commerce_at;