From 47167e769e41cc3e18d677c0890e323bc23284f2 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 27 Dec 2010 09:35:16 -0500 Subject: Fix gU for URLs containing //. --- common/content/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/content/browser.js') 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); -- cgit v1.2.3