Skip to content

Commit

Permalink
fix(check script): updated check script to handle user-defined func n…
Browse files Browse the repository at this point in the history
…ames that include special chars
  • Loading branch information
acuciureanu committed Feb 18, 2024
1 parent 1ec80ac commit 37f21ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox/js/check.payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const probe = () => {
}

prototypePropertyNames.get(type.name).forEach((prop) => {
findings.push(`${type.name}.prototype.${prop}`);
findings.push(`${type.name}.prototype${/[^\w]/.test(prop) ? `['${prop}']` : `.${prop}`}`);
});
});
return findings;
Expand Down

0 comments on commit 37f21ef

Please sign in to comment.