mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
feat: regex matching
This commit is contained in:
parent
a5762bf121
commit
3e367a09dd
8 changed files with 85 additions and 93 deletions
|
|
@ -55,9 +55,9 @@ fn gen_string_hashmap(rules: Vec<Rule>) -> String {
|
|||
.map(|x| x.to_lowercase())
|
||||
.collect::<Vec<String>>();
|
||||
string_hashmap.push_str(&format!(
|
||||
"(vec![\"{}\"], vec![\"{}\"]),",
|
||||
"(vec![\"{}\"], vec![r###\"{}\"###]),",
|
||||
pattern.join("\", \""),
|
||||
suggest.join("\", \"")
|
||||
suggest.join("\"###, r###\"")
|
||||
));
|
||||
}
|
||||
string_hashmap.push_str("]),");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue