Only wrap strings in quotes

This commit is contained in:
pyoor 2018-04-07 11:14:40 -04:00
parent b80448b2b2
commit 49915cb7a2
2 changed files with 6 additions and 2 deletions

View file

@ -31,7 +31,11 @@ class common extends utils {
}
static quote (s) {
return `'${jsesc(s)}'`
if (typeof s === 'string') {
return `'${jsesc(s)}'`
} else {
return jsesc(s)
}
}
static b64encode (str) {

View file

@ -1,6 +1,6 @@
{
"name": "@mozillasecurity/octo",
"version": "1.0.13",
"version": "1.0.14",
"description": "",
"keywords": [
"fuzzing",