pub fn is_minor(current: &str, other: &str) -> Result<bool>
Expand description

Check if a the “other” version is a minor bump from the “current”.

Examples

use tauri::api::version::is_minor;
assert!(is_minor("0.15.10", "0.16.110").unwrap());
assert!(is_minor("1.0.0", "1.1.1").unwrap());
assert!(!is_minor("2.1.9", "3.2.0").unwrap());
assert!(!is_minor("1.0.0", "1.0.10").unwrap());