diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-06 16:52:11 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-06 16:52:11 +0200 |
commit | 46b2a73f099e9162671b72ee850b16d352935f53 (patch) | |
tree | ca2db5c0dbe2e7a70ed48b5c847a7a4c5bc3bc6e | |
parent | oops... too much optimized :) (diff) | |
download | rekonq-46b2a73f099e9162671b72ee850b16d352935f53.tar.xz |
Put over localhost browse results
BUG: 238390
-rw-r--r-- | src/urlbar/urlresolver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index 7131766b..e4e2cd78 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -70,6 +70,8 @@ UrlResolver::UrlResolver(const QString &typedUrl) QString protocol = "^(http://|https://|file://|ftp://|man:|info:)"; + QString localhost = "^localhost"; + QString local = "^/"; QString ipv4 = "^0*([1-9]?\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.0*([1-9]?\\d|1\\d\\d|2[0-4]\\d|25[0-5])"\ @@ -85,7 +87,7 @@ UrlResolver::UrlResolver(const QString &typedUrl) "y[etu]|z[amw]|aero|arpa|biz|com|coop|edu|info|int|gov|mil|museum|name|net|org|"\ "pro)"; - _browseRegexp = QRegExp('(' + protocol + ")|(" + local + ")|(" + address + ")|(" + ipv6 + ")|(" + ipv4 +')'); + _browseRegexp = QRegExp('(' + protocol + ")|(" + localhost + ")|(" + local + ")|(" + address + ")|(" + ipv6 + ")|(" + ipv4 +')'); } } |