substack/node-shell-quote — pull request #7 by mlocati (2013-10-07 07:21:05+00:00)
Title: Simplify quote()

In this chunk of code:
```JavaScript
else if (/["\s]/.test(s) && !/'/.test(s)) {
return "'" + s.replace(/(['\\])/g, '\\$1') + "'";
}
```
You may remove the `'` in the replace since you already tested that it is not contained in s (`!/'/.test(s)`)