Skip to content

Commit

Permalink
fix comparison of heirarchical tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDavison committed Sep 1, 2023
1 parent 60bb8c0 commit a9e3599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter.rs
Expand Up @@ -171,10 +171,10 @@ impl<'a> Filter<'a> {
}
if key.to_lowercase() == key2.to_lowercase() {
// Ensure we don't add B-A if we've flagged A-B
return Some(Issue::Case(key.to_string(), key2.to_string()));
return Some(Issue::Case(t1.join("/").to_string(), t2.join("/").to_string()));
} else if key.trim_end_matches('s') == key2.trim_end_matches('s') {
// Ensure we don't add B-A if we've flagged A-B
return Some(Issue::Plural(key.to_string(), key2.to_string()));
return Some(Issue::Plural(t1.join("/").to_string(), t2.join("/").to_string()));
}
}
None
Expand Down

0 comments on commit a9e3599

Please sign in to comment.