php-simple-html-dom-parser
php-simple-html-dom-parser copied to clipboard
fix regex character class order in simple_html_dom.php
The order of the dashes in character classes is affected by later versions of PHP, changing the order of the character ranges fixes the problem, have shortcodes after any dashes.
I noticed when upgrading to 7.4.3
the problem is explained here https://stackoverflow.com/a/24767090/2831388
causes a couple of errors:
Compilation failed: invalid range in character class at offset 4
in simple_html_dom.php on line 1378
and a similar error on line 696