crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

Move hyphen in regexp for better compatibility

Open nicolasform opened this issue 5 years ago • 1 comments

In some versions of PHP (and/or PCRE) the hyphen has to be escaped or moved at the end of the regexp class to be considered as the literal '-' character. More info: https://stackoverflow.com/questions/24764212/preg-match-compilation-failed-invalid-range-in-character-class-at-offset#comment38430767_24767090 Tested on Wordpress 5.3 with PHP 7.4.

nicolasform avatar Dec 04 '19 17:12 nicolasform

Hi, I am a Github newbie.

Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /Volumes/Macintosh HD - xxxxx/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 73

on PHP ver 7.4.2

okcom125 avatar Jun 04 '20 20:06 okcom125