Skip to content

Commit

Permalink
Update lychee-lib/src/extract/html/srcset.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo McNally <[email protected]>
  • Loading branch information
mre and HU90m committed Jul 29, 2023
1 parent 4ffdc0a commit c6a4113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lychee-lib/src/extract/html/srcset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ where
{
for (i, ch) in input.char_indices() {
if !predicate(&ch) {
return (&input[0..i], &input[i..]);
return input.split_at(i);
}
}
(input, "")
Expand Down

0 comments on commit c6a4113

Please sign in to comment.