diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-02-14 22:35:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-02-14 22:35:05 +0000 |
commit | a91cd779021852dbe8160b63150773023d0d7c33 (patch) | |
tree | 31c557a20fc6799d3fd27ef036ae00545155b512 | |
parent | 0c7b9496ef0d7a7195328d35dd96a660435c4786 (diff) | |
download | netsurf-a91cd779021852dbe8160b63150773023d0d7c33.tar.gz netsurf-a91cd779021852dbe8160b63150773023d0d7c33.tar.bz2 |
[project @ 2005-02-14 22:35:05 by jmb]
Fix bug in regex
svn path=/import/netsurf/; revision=1513
-rw-r--r-- | utils/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/url.c b/utils/url.c index 7600a1375..256cdc4ba 100644 --- a/utils/url.c +++ b/utils/url.c @@ -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}[.])?([^.][^.][.])?([^/?&;.=]*)" |