pub fn equal_to(version1: &str, version2: &str) -> Result<bool>
Check if version1 == version2.
Returns an error if either version string is invalid.