in registry/nacos/src/lib.rs [458:484]
fn is_compatible(&self, other: &NacosServiceName) -> bool {
if !other.is_concrete() {
return false;
}
if !self.category.eq(&other.category) && !match_range(&self.category, &other.category) {
return false;
}
if is_wildcard_str(&self.version) {
return true;
}
if is_wildcard_str(&self.group) {
return true;
}
if !&self.version.eq(&other.version) && !match_range(&self.version, &other.version) {
return false;
}
if !self.group.eq(&other.group) && !match_range(&self.group, &other.group) {
return false;
}
true
}