Skip to content

Commit c79f6f4

Browse files
authored
Trim whitespace from GitHub usernames (#60)
Every now and then people have a leading or trailing space in the GitHub form and it means they don't show up in the tracker.
1 parent 9f53401 commit c79f6f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github_accounts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn trainees_from_sheet(sheet: &Sheet) -> Result<BTreeMap<GithubLogin, Trainee>,
6262
)));
6363
}
6464

65-
let github_login = GithubLogin::from(cell_string(&cells[3]));
65+
let github_login = GithubLogin::from(cell_string(&cells[3]).trim().to_owned());
6666

6767
let email = cell_string(&cells[4]);
6868

0 commit comments

Comments
 (0)