summary history branches tags files
commit:4a2719b2a276859c92dad71dd2a66afb353bac32
author:Trevor Bentley
committer:Trevor Bentley
date:Wed Jan 15 19:16:53 2025 +0100
parents:f7f757b655469e04484523861d84b66c9d9fb0fc
tags: filter out brace/bracket characters
diff --git a/src/main.rs b/src/main.rs
line changes: +3/-0
index cb27920..4a40d5a
--- a/src/main.rs
+++ b/src/main.rs
@@ -454,6 +454,9 @@ fn normalized_tags(config: &PwwConfig, output: String) -> Vec<String> {
             .replace("-", " ")
         // remove space after commas
             .replace(", ", ",")
+            .chars()
+         // remove brackets
+            .filter(|c| !"[]<>".chars().any(|x| c == &x)).collect()
     }).collect();
 
     let set: HashSet<String> = lines.join(",")