Skip to content

Commit

Permalink
Look for correct GDS version variable in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vnickolov committed Oct 6, 2023
1 parent 0fbfb95 commit dff8fd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void loadFromPropertiesRequiresVersion() {
}

private Optional<String> findVersion(Path file) throws IOException {
Pattern pattern = Pattern.compile(".*gdsVersion = '(\\d\\.\\d\\.\\d+(-alpha\\d+|-beta\\d+)?)'.*");
Pattern pattern = Pattern.compile(".*gdsBaseVersion = '(\\d\\.\\d\\.\\d+(-alpha\\d+|-beta\\d+)?)'.*");
return Files.lines(file, StandardCharsets.UTF_8)
.flatMap(line -> {
var matcher = pattern.matcher(line);
Expand Down

0 comments on commit dff8fd7

Please sign in to comment.