summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-05-19 07:24:26 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-05-19 07:24:26 +0200
commit6dd2482dc3ca25243071fb18c90df64611c58d2a (patch)
treed7a963a09c39a947679218781086ba1d752c8b68 /src/urlbar/urlresolver.cpp
parentCedric patch about urlbar (diff)
downloadrekonq-6dd2482dc3ca25243071fb18c90df64611c58d2a.tar.xz
add local file detection
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r--src/urlbar/urlresolver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 4313d569..21e3fe9c 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -76,6 +76,8 @@ UrlResolver::UrlResolver(const QString &typedUrl)
QString protocol = "^(http://|https://|file://|ftp://)";
+ 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])"\
"\\.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])";
@@ -89,7 +91,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 + ")|(" + address + ")|(" + ipv6 + ")|(" + ipv4 +")");
+ _browseRegexp = QRegExp("(" + protocol + ")|(" + local + ")|(" + address + ")|(" + ipv6 + ")|(" + ipv4 +")");
}
}