This commit is contained in:
Cadey Ratio 2020-07-05 21:50:44 -04:00
parent 26c6ce3e50
commit a87a770da7
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -1511,7 +1511,7 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860"
[[package]] [[package]]
name = "tron" name = "tron"
version = "0.2.4" version = "0.2.5"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tron" name = "tron"
version = "0.2.4" version = "0.2.5"
authors = ["Christine Dodrill <me@christine.website>"] authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018" edition = "2018"
repository = "https://tulpa.dev/cadey/tron" repository = "https://tulpa.dev/cadey/tron"

View File

@ -232,7 +232,7 @@ async fn main() -> Result<()> {
log::debug!("{} -> {}", rule.regex, rule.why); log::debug!("{} -> {}", rule.regex, rule.why);
compiled_rules.push(CompiledRule { compiled_rules.push(CompiledRule {
raw: rule.regex.clone(), raw: rule.regex.clone(),
regex: Regex::new(rule.regex.as_str())?, regex: Regex::new(&format!("\\b{}\\b", rule.regex))?,
why: rule.why, why: rule.why,
}) })
} }