mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Fix tabulators from escaping CLI (copy#217)
This commit is contained in:
parent
9211c4fc87
commit
131f4e128b
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue