From 0758cfb1b7af86ea5f4f343d084d8f999e24e29c Mon Sep 17 00:00:00 2001 From: Hendra Gunawan <48410066+JadlionHD@users.noreply.github.com> Date: Sat, 23 Nov 2024 22:38:12 +0700 Subject: [PATCH] 2.0.4 --- lib/utils/ItemsDat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/ItemsDat.ts b/lib/utils/ItemsDat.ts index 0baf58e..7b99118 100644 --- a/lib/utils/ItemsDat.ts +++ b/lib/utils/ItemsDat.ts @@ -36,7 +36,7 @@ export class ItemsDat { for (const key of keys) { const strBuf = item[key] as unknown as string; - if (this.stringFields.includes(key) && strBuf) { + if (this.stringFields.includes(key) && typeof strBuf === "string") { // calc length typeof item[key] === "string" size += strBuf.length + 2; }