Skip to content

Commit

Permalink
Merge pull request #50 from ehuss/dont-panic
Browse files Browse the repository at this point in the history
Don't panic for non-alphanumeric reviewer
  • Loading branch information
Mark-Simulacrum authored Mar 29, 2023
2 parents 98590d8 + 66fa049 commit d30d590
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,11 @@ fn parse_bors_reviewer(
.filter(|r| !r.is_empty())
.filter(|r| *r != "<try>")
.inspect(|r| {
if !r
.chars()
.all(|c| c.is_alphabetic() || c.is_digit(10) || c == '-' || c == '_')
{
panic!(
"to_author for {} contained non-alphabetic characters: {:?}",
if !r.chars().all(|c| {
c.is_alphabetic() || c.is_digit(10) || c == '-' || c == '_' || c == '='
}) {
eprintln!(
"warning: to_author for {} contained non-alphabetic characters: {:?}",
commit.id(),
r
);
Expand Down

0 comments on commit d30d590

Please sign in to comment.