Only escape required characters (non-ASCII safe)
This commit is contained in:
parent
879af3cacf
commit
be27c5057c
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ class common extends utils {
|
|||
|
||||
static quote (s) {
|
||||
if (typeof s === 'string') {
|
||||
return `'${jsesc(s)}'`
|
||||
return `'${jsesc(s, {minimal: true})}'`
|
||||
} else {
|
||||
return jsesc(s)
|
||||
return jsesc(s, {minimal: true})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue