summaryrefslogtreecommitdiff
path: root/common/content/browser.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-12-27 09:35:16 -0500
committerKris Maglione <maglione.k@gmail.com>2010-12-27 09:35:16 -0500
commit47167e769e41cc3e18d677c0890e323bc23284f2 (patch)
tree565c775cc9ab2fc11e285b8d76b74f313b8ea8b5 /common/content/browser.js
parent299ff0ecb36165a65339f315fbff9136e63bb20a (diff)
downloadpentadactyl-47167e769e41cc3e18d677c0890e323bc23284f2.tar.gz
Fix gU for URLs containing //.
Diffstat (limited to 'common/content/browser.js')
-rw-r--r--common/content/browser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/browser.js b/common/content/browser.js
index 6ceef9bf..f5967367 100644
--- a/common/content/browser.js
+++ b/common/content/browser.js
@@ -18,7 +18,7 @@ var Browser = Module("browser", {
dactyl.assert(url instanceof Ci.nsIURL);
while (count-- && url.path != "/")
- url.path = url.path.replace(/[^\/]+\/?$/, "");
+ url.path = url.path.replace(/[^\/]+\/*$/, "");
dactyl.assert(url.spec != buffer.URL);
dactyl.open(url.spec);