From a9e3599160c62c2b1e9f5190c30136a7262bde8f Mon Sep 17 00:00:00 2001 From: Chris Davison Date: Fri, 1 Sep 2023 11:33:19 +0100 Subject: [PATCH] fix comparison of heirarchical tags --- src/filter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter.rs b/src/filter.rs index 6f79466..24724fa 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -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