php-simple-html-dom-parser icon indicating copy to clipboard operation
php-simple-html-dom-parser copied to clipboard

fix regex character class order in simple_html_dom.php

Open munkiepus opened this issue 4 years ago • 0 comments

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

munkiepus avatar Mar 03 '20 12:03 munkiepus