Skip to content

Commit

Permalink
signatureDecoder: match function names that have quotes in them
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed Mar 4, 2021
1 parent f656b90 commit 8be29b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SignatureDecoder.php
Expand Up @@ -67,7 +67,8 @@ public function parseFunctionCode($func_name, $player_html)

// extract all relevant statements within that block
// wm.vY(a,1);
if (preg_match_all('/([a-z0-9$]{2})\.([a-z0-9]{2})\([^,]+,(\d+)\)/i', $js_code, $matches) != false) {
// Mx["do"](a,12)
if (preg_match_all('/([a-z0-9$]{2})[.\[]([a-z0-9"]+)]?\([^,]+,(\d+)\)/i', $js_code, $matches) != false) {

// wm
$obj_list = $matches[1];
Expand Down

0 comments on commit 8be29b0

Please sign in to comment.