mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 14:07:20 +03:00
fix: change unity game validation
This commit is contained in:
parent
2a03dd5384
commit
0f75dd13cb
@ -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));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user