Restrict the ability to make Refraction say things idk

Signed-off-by: PandaNinjas <admin@malwarefight.gq>
This commit is contained in:
PandaNinjas 2023-02-24 02:15:21 +00:00 committed by GitHub
parent 21390fed8a
commit ade5b4b9b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ type LogProvider = (text: string) => Promise<null | string>;
const javaAnalyzer: Analyzer = async (text) => {
if (text.includes('This instance is not compatible with Java version')) {
const xp =
/Please switch to one of the following Java versions for this instance:[\r\n]+([^\r\n]+)/g;
/Please switch to one of the following Java versions for this instance:[\r\n]+(Java version \d+)/g;
let ver: string;
const m = text.match(xp);