Merge pull request #46 from fdman-liis/main

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:
bakhirev 2024-08-07 00:59:14 +03:00 committed by GitHub
commit 1e55c25df1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}