[project @ 2005-02-14 22:35:05 by jmb]

Fix bug in regex

svn path=/import/netsurf/; revision=1513
This commit is contained in:
John Mark Bell 2005-02-14 22:35:05 +00:00
parent 0c7b9496ef
commit a91cd77902
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ void url_init(void)
"(\\?([^#[:space:]]*))?(#([^[:space:]]*))?"
"[[:space:]]*$", REG_EXTENDED);
regcomp_wrapper(&url_up_re,
"/([^/]|[.][^./]|[^./][.]|[^/][^/][^/]+)/[.][.](/|$)",
"/([^/]|[.][^./]|[^./][.]|[^/][^/][^/]+)?/[.][.](/|$)",
REG_EXTENDED);
regcomp_wrapper(&url_nice_re,
"^([^.]{0,4}[.])?([^.][^.][.])?([^/?&;.=]*)"