Fix tabulators from escaping CLI (copy#217)

This commit is contained in:
mprey 2019-11-12 10:33:55 -06:00 committed by Fabian
parent 9211c4fc87
commit 131f4e128b

View file

@ -86,6 +86,7 @@ window.onload = function()
// Implement bash string escaping.
function bashEscape(arg)
{
arg = arg.replace(/\t+/g, "");
return "'" + arg.replace(/'+/g, function (val) {
return "'" + val.replace(/'/g, "\\'") + "'";
}) + "'";