Update shell.js

This commit is contained in:
Namhyeon Go 2022-03-29 15:22:40 +09:00 committed by GitHub
parent 9de4fa64f8
commit e73358de36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ var ShellObject = function() {
return cmd.map(function(s) {
if (s == '') {
return "''";
} else if (!/[ "]/g.test(s)) {
} else if (!/[ "=]/g.test(s)) {
return s;
} else {
return "\"" + addslashes(s) + "\"";