compare value of 'rel' properties in case-insensitive
This commit is contained in:
parent
8d7052b39c
commit
6f158dc6db
1 changed files with 3 additions and 3 deletions
|
@ -108,13 +108,13 @@ pub fn walk_and_embed_assets(
|
|||
if is_icon(value) {
|
||||
link_type = LinkType::Icon;
|
||||
break;
|
||||
} else if value == "stylesheet" {
|
||||
} else if value.eq_ignore_ascii_case("stylesheet") {
|
||||
link_type = LinkType::Stylesheet;
|
||||
break;
|
||||
} else if value == "preload" {
|
||||
} else if value.eq_ignore_ascii_case("preload") {
|
||||
link_type = LinkType::Preload;
|
||||
break;
|
||||
} else if value == "dns-prefetch" {
|
||||
} else if value.eq_ignore_ascii_case("dns-prefetch") {
|
||||
link_type = LinkType::DnsPrefetch;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue