Allow dots too

Signed-off-by: PandaNinjas <admin@malwarefight.gq>
This commit is contained in:
PandaNinjas 2023-02-24 02:18:19 +00:00 committed by GitHub
parent ade5b4b9b5
commit 38a136d742
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) => { const javaAnalyzer: Analyzer = async (text) => {
if (text.includes('This instance is not compatible with Java version')) { if (text.includes('This instance is not compatible with Java version')) {
const xp = const xp =
/Please switch to one of the following Java versions for this instance:[\r\n]+(Java version \d+)/g; /Please switch to one of the following Java versions for this instance:[\r\n]+(Java version (?:\d|\.)+)/g;
let ver: string; let ver: string;
const m = text.match(xp); const m = text.match(xp);