mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-12 18:16:25 +00:00
chore: fixing
This commit is contained in:
1 parent
417daaf03a
commit
9f87e07da5
1 file changed
+2
-2
@@ -7,7 +7,7 @@ function getFileName(file, data) {
|
||||
// Validate if the file name matches any of the target.RECORD_TYPE values
|
||||
const recordTypes = Object.values(data.target);
|
||||
|
||||
return recordTypes[0].name == fileNameWithoutExt.toLowerCase();
|
||||
return recordTypes[0].name == fileNameWithoutExt.toLowerCase().split("/")[1];
|
||||
}
|
||||
|
||||
module.exports = getFileName;
|
||||
module.exports = getFileName;
|
||||
Reference in new issue
Block a user