From 8a22b6d7ecb45fdc271cc8ee8e7057f9db17355f Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 28 Nov 2023 11:15:09 +0100 Subject: [PATCH] feat: support temurin openjdk --- Antlr4BuildTasks/Tasks/RunAntlrTool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Antlr4BuildTasks/Tasks/RunAntlrTool.cs b/Antlr4BuildTasks/Tasks/RunAntlrTool.cs index 81310848..be79a521 100755 --- a/Antlr4BuildTasks/Tasks/RunAntlrTool.cs +++ b/Antlr4BuildTasks/Tasks/RunAntlrTool.cs @@ -1218,7 +1218,7 @@ private void TestDataReceived(string data) } try { - Regex valid_version_pattern = new Regex("(OpenJDK Runtime Environment [(]build (1[1-9]|[2-9][0-9]))|(Java[(]TM[)] SE Runtime Environment [(]build (1[1-9]|[2-9][0-9]))"); + Regex valid_version_pattern = new Regex("(OpenJDK Runtime Environment [^()]*[(]build (1[1-9]|[2-9][0-9]))|(Java[(]TM[)] SE Runtime Environment [(]build (1[1-9]|[2-9][0-9]))"); var matches = valid_version_pattern.Matches(data); var found = matches.Count > 0; MessageQueue.EnqueueMessage(Message.BuildDefaultMessage("got matches " + matches.Count + " for '" + data + "'"));