mirror of
https://github.com/iv-org/inv_sig_helper.git
synced 2025-02-17 04:17:31 +00:00
Fix sig function body extraction not escaping $
This commit is contained in:
parent
2db19fb81f
commit
6f7054a457
@ -152,7 +152,7 @@ pub async fn fetch_update(state: Arc<GlobalState>) -> Result<(), FetchUpdateStat
|
|||||||
.as_str();
|
.as_str();
|
||||||
|
|
||||||
let mut sig_function_body_regex_str: String = String::new();
|
let mut sig_function_body_regex_str: String = String::new();
|
||||||
sig_function_body_regex_str += sig_function_name;
|
sig_function_body_regex_str += &sig_function_name.replace("$", "\\$");
|
||||||
sig_function_body_regex_str += "=function\\([a-zA-Z0-9_]+\\)\\{.+?\\}";
|
sig_function_body_regex_str += "=function\\([a-zA-Z0-9_]+\\)\\{.+?\\}";
|
||||||
|
|
||||||
let sig_function_body_regex = Regex::new(&sig_function_body_regex_str).unwrap();
|
let sig_function_body_regex = Regex::new(&sig_function_body_regex_str).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user