chore: Trim the strings in repo announce command
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user