From 0f75dd13cb390cbea0ad78ebd03e01cfd96992bb Mon Sep 17 00:00:00 2001 From: Akuoko Daniel Jnr Date: Sun, 15 Nov 2020 17:14:36 +0000 Subject: [PATCH] fix: change unity game validation --- common/validations.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/validations.js b/common/validations.js index ef0d0aa2..419ac259 100644 --- a/common/validations.js +++ b/common/validations.js @@ -154,5 +154,7 @@ export const isUnityFile = async (file) => { const fileNames = Object.keys(contents.files); // NOTE(daniel): every Unity game file will have this file - return fileNames.includes("Build/UnityLoader.js"); + const unityRegex = new RegExp(/unityloader.js/i); + + return fileNames.some((file) => unityRegex.test(file)); };