Skip to content

Commit f99e807

Browse files
committedNov 18, 2020
refactor: ensure filetype detection is case-insensitive
1 parent 7bdbc48 commit f99e807

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/lib/iac/detect-iac.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ async function getDirectoryFiles(
9999
});
100100

101101
for (const filePath of directoryPaths) {
102-
const fileType = pathLib.extname(filePath).substr(1) as IacFileTypes;
102+
const fileType = pathLib
103+
.extname(filePath)
104+
.substr(1)
105+
.toLowerCase() as IacFileTypes;
103106
if (!fileType || !supportedExtensions.has(fileType)) {
104107
continue;
105108
}

0 commit comments

Comments
 (0)
Please sign in to comment.