ah, refine the bug fix for number filenames
This commit is contained in:
parent
d27395bda2
commit
8cc034900d
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ export function OutfitCanvasMovie({ librarySrc, zIndex }) {
|
||||||
const fileName = librarySrc.split("/").pop();
|
const fileName = librarySrc.split("/").pop();
|
||||||
const fileNameWithoutExtension = fileName.split(".")[0];
|
const fileNameWithoutExtension = fileName.split(".")[0];
|
||||||
constructorName = fileNameWithoutExtension.replace(/[ -]/g, "");
|
constructorName = fileNameWithoutExtension.replace(/[ -]/g, "");
|
||||||
if (constructorName.match(/^[0-9]+$/)) {
|
if (constructorName.match(/^[0-9]/)) {
|
||||||
constructorName = "_" + constructorName;
|
constructorName = "_" + constructorName;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue