fix fileExists not finding coding contrafcts

This commit is contained in:
Olivier Gagnon 2022-10-09 02:57:43 -04:00
parent f4668b21ca
commit 3c03ac4f18

@ -1300,6 +1300,8 @@ const base: InternalAPI<NS> = {
return true;
}
}
const contract = server.contracts.find((c) => c.fn.toLowerCase() === filename.toLowerCase());
if (contract) return true;
const txtFile = getTextFile(filename, server);
return txtFile != null;
},