From 8cc034900d881fc1e80137d233fdce808a38a473 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 22 Sep 2020 04:08:05 -0700 Subject: [PATCH] ah, refine the bug fix for number filenames --- src/app/components/OutfitCanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/OutfitCanvas.js b/src/app/components/OutfitCanvas.js index 1ee4204..5500d9e 100644 --- a/src/app/components/OutfitCanvas.js +++ b/src/app/components/OutfitCanvas.js @@ -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) {