diff options
author | Marco Peereboom <marco@conformal.com> | 2011-08-24 16:11:05 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-08-24 16:11:05 +0000 |
commit | 83da9c89fe03200e5b81d68e3f6e7ff173a76b41 (patch) | |
tree | a29031a66c3a810ec54c304d7924f059393b0821 | |
parent | 2f97bfbad088016b4e4fb6d055fb9d00cdd9348b (diff) | |
download | xombrero-83da9c89fe03200e5b81d68e3f6e7ff173a76b41.tar.gz |
better regex from mcbride
-rw-r--r-- | xxxterm.c | 2 | ||||
-rw-r--r-- | 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 |