don't use negative lookahead
This commit is contained in:
parent
410e2e665e
commit
919d5e2cb6
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1527,7 +1527,7 @@ checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7"
|
|||
|
||||
[[package]]
|
||||
name = "site_icons"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"clap",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "site_icons"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
authors = ["Sam Denty <sam@samdenty.com>"]
|
||||
edition = "2018"
|
||||
license = "GPL-3.0"
|
||||
|
|
|
@ -143,7 +143,7 @@ impl Icons {
|
|||
let mentions_logo = |attr_name| {
|
||||
elem
|
||||
.attr(attr_name)
|
||||
.map(|attr| regex!("logo(?!s)").is_match(&attr.to_lowercase()))
|
||||
.map(|attr| regex!("logo([^s]|$)").is_match(&attr.to_lowercase()))
|
||||
.unwrap_or(false)
|
||||
};
|
||||
if mentions_logo("class") || mentions_logo("id") {
|
||||
|
|
Reference in a new issue