bugfix - if filename contains constructor word, than now it is processed correctly (e.g. node_modules/core-js/library/modules/es6.number.constructor.js)

This commit is contained in:
Dmitry Fedorchenko 2024-08-05 17:14:22 +03:00
parent 71cf173cdb
commit d54f44dd3c

View file

@ -27,7 +27,7 @@ export default class FileGripByType {
if (!key || file?.name?.[0] === '.') return; if (!key || file?.name?.[0] === '.') return;
if (!this.statisticByName[key]) { if (!this.statisticByName.hasOwnProperty(key)) {
this.statisticByName[key] = this.#getNewType(file); this.statisticByName[key] = this.#getNewType(file);
} }