Merge pull request #106 from pandaninjas/patch-3
Restrict the Java Version analysis responses
This commit is contained in:
commit
b6f19c014d
1 changed files with 1 additions and 1 deletions
|
@ -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]+([^\r\n]+)/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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue