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

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

Examples

use tauri::api::version::is_patch;
assert!(is_patch("0.15.0", "0.15.1").unwrap());
assert!(is_patch("1.0.0", "1.0.1").unwrap());
assert!(!is_patch("2.2.0", "2.3.1").unwrap());
assert!(!is_patch("2.2.1", "1.1.0").unwrap());