mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-08-15 18:23:36 +00:00
chore: fixing
This commit is contained in:
@@ -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