Skip to content

Commit

Permalink
make extension check case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
rainu committed Nov 4, 2024
1 parent 7967122 commit f881252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/vision/VisionEmbedding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default defineComponent({
if (entry.kind === 'directory') {
const subDirectory = await this.listFiles(root + '/' + entry.name, entry)
result.subDirectories.push(subDirectory)
} else if (entry.kind === 'file' && validImageExtensions.some((ext) => entry.name.endsWith(ext))) {
} else if (entry.kind === 'file' && validImageExtensions.some((ext) => entry.name.toLowerCase().endsWith(ext))) {
result.files.push(entry.name)
}
}
Expand Down

0 comments on commit f881252

Please sign in to comment.