Require file extension for sprites

This commit is contained in:
Jordan Eldredge 2020-10-12 21:53:34 -07:00
parent f6897c6d41
commit 0a3664bdbc

View file

@ -10,7 +10,7 @@ export const getFileExtension = (fileName: string): string | null => {
};
function getFilenameRegex(base: string, ext: string): RegExp {
return new RegExp(`^(.*/)?${base}(\.${ext})?$`, "i");
return new RegExp(`^(.*/)?${base}.(${ext})$`, "i");
}
export async function getFileFromZip(