diff --git a/backup-restore.js b/backup-restore.js index 493df29..ebaf9ed 100644 --- a/backup-restore.js +++ b/backup-restore.js @@ -78,7 +78,7 @@ function reqStr(v, max) { } function optStr(v, max) { - if (v === null || v === undefined) return null; + if (v === null || v === undefined || v === '') return null; return reqStr(v, max); }