chore: Trim the strings in repo announce command
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -72,6 +72,7 @@ impl EventBuilder {
|
||||
maintainers: Vec<PublicKey>,
|
||||
labels: Vec<String>,
|
||||
) -> N34Result<EventBuilder> {
|
||||
let repo_id = repo_id.trim();
|
||||
if repo_id.is_empty() || repo_id != repo_id.to_case(Case::Kebab) {
|
||||
return Err(N34Error::InvalidRepoId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user