Skip to content

Commit

Permalink
Merge pull request #9 from MMaster/fix_sigfn_extraction
Browse files Browse the repository at this point in the history
Fix sig function extraction
  • Loading branch information
techmetx11 authored Aug 8, 2024
2 parents 2db19fb + 6f7054a commit 152b972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub async fn fetch_update(state: Arc<GlobalState>) -> Result<(), FetchUpdateStat
.as_str();

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_]+\\)\\{.+?\\}";

let sig_function_body_regex = Regex::new(&sig_function_body_regex_str).unwrap();
Expand Down

0 comments on commit 152b972

Please sign in to comment.