chore: Trim the strings in repo announce command

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-06 11:30:13 +00:00
parent 9b4dfb9374
commit a56acf5752
3 changed files with 10 additions and 4 deletions

View File

@@ -75,3 +75,8 @@ pub fn event_into_repo(event: Event, repo_id: impl Into<String>) -> GitRepositor
maintainers: tags.dmap_tag(TagKind::Maintainers, tag_values),
}
}
/// Returns a new string with leading and trailing whitespace removed.
pub fn str_trim(s: String) -> String {
s.trim().to_owned()
}