From 83da9c89fe03200e5b81d68e3f6e7ff173a76b41 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Wed, 24 Aug 2011 16:11:05 +0000 Subject: better regex from mcbride --- xxxterm.c | 2 +- xxxterm.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xxxterm.c b/xxxterm.c index 28f69bd..4d5dffb 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -345,7 +345,7 @@ struct karg { #define XT_MAX_UNDO_CLOSE_TAB (32) #define XT_RESERVED_CHARS "$&+,/:;=?@ \"<>#%%{}|^~[]`" #define XT_PRINT_EXTRA_MARGIN 10 -#define XT_URL_REGEX ("^[[:blank:]]*[^[:blank:]]*([[:alnum:]-]+.)+[[:alnum:]-][^[:blank:]]*[[:blank:]]*$") +#define XT_URL_REGEX ("^[[:blank:]]*[^[:blank:]]*([[:alnum:]-]+\\.)+[[:alnum:]-][^[:blank:]]*[[:blank:]]*$") #define XT_INVALID_MARK (-1) /* XXX this is a double, maybe use something else, like a nan */ /* colors */ diff --git a/xxxterm.conf b/xxxterm.conf index e194e60..d6d8edc 100644 --- a/xxxterm.conf +++ b/xxxterm.conf @@ -28,7 +28,7 @@ # show_statusbar = 0 # session_autosave = 0 # guess_search = 1 -# url_regex = ^[[:blank:]]*[^[:blank:]]*([[:alnum:]-]+.)+[[:alnum:]-][^[:blank:]]*[[:blank:]]*$ +# url_regex = ^[[:blank:]]*[^[:blank:]]*([[:alnum:]-]+\.)+[[:alnum:]-][^[:blank:]]*[[:blank:]]*$ # enable_spell_checking = 1 # spell_check_languages = en_US # xterm_workaround = 1 -- cgit 1.4.1-2-gfad0