1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 13:14:13 +01:00

minor formatting fixes

This commit is contained in:
Doug Kearns
2007-12-04 08:23:49 +00:00
parent 6ceccfee72
commit a91aec0172
4 changed files with 16 additions and 11 deletions

View File

@@ -1086,9 +1086,9 @@ vimperator.Mappings = function () //{{{
for (var i = 0; i < count; i++)
{
if (isDirectory(url))
url = url.replace(/^(.*?:)(.*?)([^\/]+\/*)$/, "$1$2/")
url = url.replace(/^(.*?:)(.*?)([^\/]+\/*)$/, "$1$2/");
else
url = url.replace(/^(.*?:)(.*?)(\/+[^\/]+)$/, "$1$2/")
url = url.replace(/^(.*?:)(.*?)(\/+[^\/]+)$/, "$1$2/");
}
url = url.replace(/^(.*:\/+.*?)\/+$/, "$1/"); // get rid of more than 1 / at the end