This PR fixes the basename function and the gif replace regex to become insensitive when using assets with no lowercase extension.
Note:
It's a very bad idea to have reimplemented the path functions in the front end. We should use the backend path functions and link it to the front end with the window.api. We need a task to change this (https://github.com/PokemonWorkshop/PokemonStudio/issues/340).
Closes #336
Tests to perform
[x] The user can use a resource with an extension which is not lowercase
You can test with the Pokémon resources or the trainer resources. Try with png and gif extension.
Description
This PR fixes the basename function and the gif replace regex to become insensitive when using assets with no lowercase extension.
Note: It's a very bad idea to have reimplemented the path functions in the front end. We should use the backend path functions and link it to the front end with the window.api. We need a task to change this (https://github.com/PokemonWorkshop/PokemonStudio/issues/340).
Closes #336
Tests to perform
You can test with the Pokémon resources or the trainer resources. Try with png and gif extension.