1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 06:58:00 +01:00

argdo liberator.jss/"foo \"" + str + "\""/"foo " + str.quote()/g

This commit is contained in:
Kris Maglione
2008-12-06 18:33:54 -05:00
parent 532d520e0e
commit ae25ea4309
4 changed files with 18 additions and 27 deletions

View File

@@ -235,7 +235,7 @@ const liberator = (function () //{{{
if (dialogs[i][0] == args)
return dialogs[i][2]();
}
liberator.echoerr(args ? "Dialog \"" + args + "\" not available" : "E474: Invalid argument");
liberator.echoerr(args ? "Dialog " + args.quote() + " not available" : "E474: Invalid argument");
}
catch (e)
{
@@ -918,7 +918,7 @@ const liberator = (function () //{{{
if (config.helpFiles.indexOf(helpFile) != -1)
liberator.open("chrome://liberator/locale/" + helpFile, where);
else
liberator.echo("Sorry, help file \"" + helpFile + "\" not found");
liberator.echo("Sorry, help file " + helpFile.quote() + " not found");
return;
}
@@ -977,7 +977,7 @@ const liberator = (function () //{{{
for (let [,dir] in Iterator(dirs))
{
// TODO: search plugins/**/* for plugins
liberator.echomsg("Searching for \"plugin/*.{js,vimp}\" in \"" + dir.path + "\"", 2);
liberator.echomsg('Searching for "plugin/*.{js,vimp}" in ' + dir.path.quote(), 2);
liberator.log("Sourcing plugin directory: " + dir.path + "...", 3);