Fix tabulators from escaping CLI (copy#217)
This commit is contained in:
parent
9211c4fc87
commit
131f4e128b
|
@ -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, "\\'") + "'";
|
||||
}) + "'";
|
||||
|
|
Loading…
Reference in a new issue