1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-04 02:35:29 +00:00

Fix matching of file:// URLs which of course have no host name

This commit is contained in:
Jonas Fonseca 2005-12-25 16:22:20 +01:00 committed by Jonas Fonseca
parent 5dd9061a55
commit be8c68c5f7

View File

@ -56,7 +56,7 @@ struct dom_renderer {
struct screen_char styles[DOM_NODES];
};
#define URL_REGEX "((f|ht|nt)tp(s)?|smb|file)://[[:alnum:]]+([-@:.]?[[:alnum:]])*\\.[[:alpha:]]{2,4}(:[[:digit:]]+)?(/(%[[:xdigit:]]{2}|[-_~&=;?.a-z0-9])*)*"
#define URL_REGEX "(file://|((f|ht|nt)tp(s)?|smb)://[[:alnum:]]+([-@:.]?[[:alnum:]])*\\.[[:alpha:]]{2,4}(:[[:digit:]]+)?)(/(%[[:xdigit:]]{2}|[-_~&=;?.a-z0-9])*)*"
#define URL_REGFLAGS (REG_ICASE | REG_EXTENDED)
static void