Skip to content

Lapis-chan v1.2.3 - File Extensions

Compare
Choose a tag to compare
@karai17 karai17 released this 29 Nov 21:42
· 34 commits to master since this release

I improved how file extensions are handled in the code so now cute_kitties.JPG will be detected properly. I changed how all extensions are read to use string.match instead of string.sub, and set the extension to lower case for detection purposes. This allows the code to be a bit cleaner, and even shorter in some places since I was able to merge webm and svg detection in the same if statements.