Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed Nov 29, 2023
2 parents b37180d + 3f156cc commit 72071e1
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 72071e1

Please sign in to comment.