Skip to content

Commit 263623d

Browse files
committed
Fix hasTextExtension util function
1 parent 13383dc commit 263623d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function copyToClipboard(text: string) {
5656
* @returns True if the file has a text extension, false otherwise
5757
*/
5858
export function hasTextExtension(filePath: string) {
59-
for (const extension in TEXT_EXTENSIONS) {
59+
for (const extension of TEXT_EXTENSIONS) {
6060
if (filePath.endsWith(extension)) {
6161
return true;
6262
}

0 commit comments

Comments
 (0)