Allow higher major versions for the OBS version

pull/14/head
Dominik Nakamura 3 years ago
parent 8fa83b2078
commit cec40e013a
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -120,7 +120,7 @@ where
}
const OBS_STUDIO_VERSION: Comparator = Comparator {
op: Op::Caret,
op: Op::GreaterEq,
major: 26,
minor: Some(1),
patch: None,
@ -502,7 +502,7 @@ mod tests {
assert!(OBS_STUDIO_VERSION.matches(&Version::new(26, 1, 0)));
assert!(OBS_STUDIO_VERSION.matches(&Version::new(26, 1, 100)));
assert!(OBS_STUDIO_VERSION.matches(&Version::new(26, 100, 100)));
assert!(!OBS_STUDIO_VERSION.matches(&Version::new(27, 0, 0)));
assert!(OBS_STUDIO_VERSION.matches(&Version::new(27, 0, 0)));
assert!(OBS_WEBSOCKET_VERSION.matches(&Version::new(4, 9, 0)));
assert!(OBS_WEBSOCKET_VERSION.matches(&Version::new(4, 9, 100)));

Loading…
Cancel
Save