mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 16:28:59 +08:00
fix(rust): bad comp
This commit is contained in:
parent
a2d94b525f
commit
ce2c51f6c1
@ -263,7 +263,7 @@ fn _transform_html_inner(opts: TranformHTMLOptions) -> Result<String, ()> {
|
|||||||
for img in document.select("img[srcset]")? {
|
for img in document.select("img[srcset]")? {
|
||||||
let mut sizes: Vec<ImageSource> = img.attributes.borrow().get("srcset").ok_or(())?.to_string().split(",").filter_map(|x| {
|
let mut sizes: Vec<ImageSource> = img.attributes.borrow().get("srcset").ok_or(())?.to_string().split(",").filter_map(|x| {
|
||||||
let tok: Vec<&str> = x.trim().split(" ").collect();
|
let tok: Vec<&str> = x.trim().split(" ").collect();
|
||||||
let tok_1 = if tok.len() > 0 {
|
let tok_1 = if tok.len() > 1 {
|
||||||
tok[1]
|
tok[1]
|
||||||
} else {
|
} else {
|
||||||
"1x"
|
"1x"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user