pub fn is_valid_repository(s: &str) -> bool
Expand description

Test whether a string is a valid repository specifier/full name of the form {owner}/{name}.

§Example

assert!(is_valid_repository("octocat/my-repo"));
assert!(!is_valid_repository("octocat/my-repo.git"));
assert!(!is_valid_repository("my-repo"));