mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-28 18:05:46 +01:00
Fix gU for URLs containing //.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user