mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-16 00:03:51 +01:00
fix: err_regex
This commit is contained in:
parent
b6fc993db1
commit
a621e3ff34
2 changed files with 3 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ pub fn err(suggest: &mut String, replace_list: &mut Vec<TokenStream2>) {
|
|||
|
||||
let regex = suggest[args.to_owned()].trim();
|
||||
|
||||
let command = format!("opt_regex({}, &mut error_msg)", regex);
|
||||
let command = format!("err_regex(r###\"{}\"###, error_msg)", regex);
|
||||
|
||||
replace_list.push(rtag(tag_name, replace_tag, command));
|
||||
suggest.replace_range(placeholder, &tag(tag_name, replace_tag));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue