Skip to content

Commit

Permalink
Merge pull request #176 from EventStore/DEV-283/fix-parsing-of-semver…
Browse files Browse the repository at this point in the history
…-for-ci

DEV-283 - Fix parsing of server semver for CI
  • Loading branch information
josephcummings authored Feb 15, 2024
2 parents c62b556 + 6574ae6 commit 1120ec9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eventstore/src/server_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,14 @@ pub(crate) async fn supported_methods(
.into_inner();

let mut version = ServerVersion::default();
let semver: String = methods
.event_store_server_version
.chars()
.filter(|&c| c.is_ascii_digit() || c == '.')
.collect();

// Server version uses sem versioning.
for (idx, ver) in methods.event_store_server_version.split('.').enumerate() {
for (idx, ver) in semver.split('.').enumerate() {
if idx > 2 {
break;
}
Expand Down

0 comments on commit 1120ec9

Please sign in to comment.