mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fix matching of file:// URLs which of course have no host name
This commit is contained in:
parent
5dd9061a55
commit
be8c68c5f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user