mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Require file extension for sprites
This commit is contained in:
parent
f6897c6d41
commit
0a3664bdbc
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue