Skip to content

Commit

Permalink
Improved glyph url handling: accept arbitrary suffixes after {end} #1443
Browse files Browse the repository at this point in the history
 - Fixed clippy error
  • Loading branch information
bzeiss committed Jul 28, 2024
1 parent b5e83d3 commit 895dbe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion martin/src/srv/fonts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl FontRequest {
}

fn parse_leading_digits(input: &str) -> Result<u32, &'static str> {
let digits: String = input.chars().take_while(|c| c.is_digit(10)).collect();
let digits: String = input.chars().take_while(|c| c.is_ascii_digit()).collect();
if digits.is_empty() {
Err("No leading digits found")
} else {
Expand Down

0 comments on commit 895dbe8

Please sign in to comment.