From d54f44dd3cd6895431b7d72d87bd9c8762dc0e4d Mon Sep 17 00:00:00 2001 From: Dmitry Fedorchenko Date: Mon, 5 Aug 2024 17:14:22 +0300 Subject: [PATCH] bugfix - if filename contains constructor word, than now it is processed correctly (e.g. node_modules/core-js/library/modules/es6.number.constructor.js) --- src/ts/helpers/FileGrip/components/type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/helpers/FileGrip/components/type.ts b/src/ts/helpers/FileGrip/components/type.ts index 150ff36..5371620 100644 --- a/src/ts/helpers/FileGrip/components/type.ts +++ b/src/ts/helpers/FileGrip/components/type.ts @@ -27,7 +27,7 @@ export default class FileGripByType { if (!key || file?.name?.[0] === '.') return; - if (!this.statisticByName[key]) { + if (!this.statisticByName.hasOwnProperty(key)) { this.statisticByName[key] = this.#getNewType(file); }