Skip to content

Commit

Permalink
Merge pull request #76 from viceice/feat/support-temurin-openjdk
Browse files Browse the repository at this point in the history
feat: support temurin openjdk
  • Loading branch information
kaby76 authored Nov 28, 2023
2 parents fe899e0 + 8a22b6d commit 3f156cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Antlr4BuildTasks/Tasks/RunAntlrTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "'"));
Expand Down

0 comments on commit 3f156cc

Please sign in to comment.