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]]
|
[[package]]
|
||||||
name = "site_icons"
|
name = "site_icons"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "site_icons"
|
name = "site_icons"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
authors = ["Sam Denty <sam@samdenty.com>"]
|
authors = ["Sam Denty <sam@samdenty.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
|
|
|
@ -143,7 +143,7 @@ impl Icons {
|
||||||
let mentions_logo = |attr_name| {
|
let mentions_logo = |attr_name| {
|
||||||
elem
|
elem
|
||||||
.attr(attr_name)
|
.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)
|
.unwrap_or(false)
|
||||||
};
|
};
|
||||||
if mentions_logo("class") || mentions_logo("id") {
|
if mentions_logo("class") || mentions_logo("id") {
|
||||||
|
|
Reference in a new issue