summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-12-31 13:16:08 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-12-31 13:16:08 +0100
commit93e00f8acdb5808a2bafb5233d865de2017b1529 (patch)
tree07160a2540c5ce28dcabe86e87adcf5000bb8738
parent9ec0188b7628e70ccb39b708d6500429d14f7a1d (diff)
Match the group name in config correctly
Cut too much, [groups] turned into "group"
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 6564c84..963b733 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -14,7 +14,7 @@ pub fn load_groups(path: &PathBuf) -> io::Result<HashMap<String, Vec<String>>> {
continue;
}
if line.starts_with("[") && line.ends_with("]") {
- group_name = line[1..line.len() - 2].to_string();
+ group_name = line[1..line.len() - 1].to_string();
if !groups.contains_key(&group_name) {
groups.insert(group_name.clone(), vec![]);
}