Only escape required characters (non-ASCII safe)

This commit is contained in:
pyoor 2018-08-01 10:57:28 -04:00
parent 879af3cacf
commit be27c5057c

View file

@ -32,9 +32,9 @@ class common extends utils {
static quote (s) { static quote (s) {
if (typeof s === 'string') { if (typeof s === 'string') {
return `'${jsesc(s)}'` return `'${jsesc(s, {minimal: true})}'`
} else { } else {
return jsesc(s) return jsesc(s, {minimal: true})
} }
} }