From 410c1d6adab83ffaa26f9064710f99bbe33d14f1 Mon Sep 17 00:00:00 2001 From: mitsu-ksgr Date: Fri, 25 Oct 2024 21:36:01 +0900 Subject: [PATCH] Accept .JSON definition file. --- src/services/storage/Validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/storage/Validator.ts b/src/services/storage/Validator.ts index 4cde2ff2..393fe17c 100644 --- a/src/services/storage/Validator.ts +++ b/src/services/storage/Validator.ts @@ -23,7 +23,7 @@ export type ValidateKeyboardDefinitionSchemaResult = { }; export const isJsonFile = (file: File): boolean => { - return file.name.endsWith('.json'); + return file.name.toLowerCase().endsWith('.json'); }; export const validateIds = (