diff --git a/bin/zerda.mjs b/bin/zerda.mjs index 2aa4ad2..9b47f6b 100755 --- a/bin/zerda.mjs +++ b/bin/zerda.mjs @@ -407,7 +407,13 @@ async function main () { async inputString => { inputString = inputString.trim(); - let input = JSON.parse(inputString); + let input; + + try { + input = JSON.parse(inputString); + } catch { + input = inputString; + } if (typeof input[0] === 'undefined') { input = [ input ];