mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update shell.js
This commit is contained in:
parent
8b4e2c1e66
commit
d366427b62
|
@ -51,8 +51,9 @@ var ShellObject = function() {
|
|||
return cmd;
|
||||
} else if (typeof(cmd) === "object") {
|
||||
return cmd.map(function(s) {
|
||||
var regex = /[ "]/g;
|
||||
if (!regex.test(s)) {
|
||||
if (s == '') {
|
||||
return "''";
|
||||
} else if (!/[ "]/g.test(s)) {
|
||||
return s;
|
||||
} else {
|
||||
return "\"" + addslashes(s) + "\"";
|
||||
|
|
Loading…
Reference in New Issue
Block a user