mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Fix hasTextExtension util function
This commit is contained in:
parent
13383dc65c
commit
263623dad7
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ export async function copyToClipboard(text: string) {
|
|||
* @returns True if the file has a text extension, false otherwise
|
||||
*/
|
||||
export function hasTextExtension(filePath: string) {
|
||||
for (const extension in TEXT_EXTENSIONS) {
|
||||
for (const extension of TEXT_EXTENSIONS) {
|
||||
if (filePath.endsWith(extension)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue