Skip to content

Commit

Permalink
refactor(parser): slightly change host parser
Browse files Browse the repository at this point in the history
  • Loading branch information
norskeld committed Dec 13, 2023
1 parent 912bde3 commit 0315bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(crate) fn shortcut(input: &str) -> Result<Repository, AppError> {
/// - `gitlab` or `gl`
/// - `bitbucket` or `bb`
fn host() -> impl Parser<char, Host, Error = Cheap<char>> {
let host = filter::<_, _, Cheap<char>>(|ch: &char| ch.is_ascii_alphabetic())
let host = filter::<_, _, Cheap<char>>(char::is_ascii_alphabetic)
.repeated()
.at_least(1)
.collect::<String>()
Expand Down

0 comments on commit 0315bd4

Please sign in to comment.