ah, refine the bug fix for number filenames

This commit is contained in:
Emi Matchu 2020-09-22 04:08:05 -07:00
parent d27395bda2
commit 8cc034900d

View file

@ -213,7 +213,7 @@ export function OutfitCanvasMovie({ librarySrc, zIndex }) {
const fileName = librarySrc.split("/").pop();
const fileNameWithoutExtension = fileName.split(".")[0];
constructorName = fileNameWithoutExtension.replace(/[ -]/g, "");
if (constructorName.match(/^[0-9]+$/)) {
if (constructorName.match(/^[0-9]/)) {
constructorName = "_" + constructorName;
}
} catch (e) {