Skip to content

Conversation

@rivanuff
Copy link
Contributor

No description provided.

@rivanuff rivanuff requested review from a team, Rovasch, SimonvanWijhe, YvetteNikolov, dtakken, hnccox-yard, ictbeheer and mvdhoek1 and removed request for a team January 27, 2026 16:06
$pattern = '/\son([a-z]*)\s*=\s*([\'"])((?>\\\\\2|[^\2])*?)\2/m';
$scriptTags = [];
{
$pattern = '/\son([a-z]*)\s*=\s*([\'"])((?>\\\\\2|[^\2])*?)\2/m';
Copy link
Contributor

@ictbeheer ictbeheer Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Staat los van deze fix, maar als je in een regex groepen een naam geeft is het duidelijker wat $matches[x] is.

$pattern = '/\son(?P<event>[a-z]*)\s*=\s*([\'"])(?P<handler>(?>\\\\\2|[^\2])*?)\2/m';

Dan kan je $matches['handler'] gebruiken ipv $matches[3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants