Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move hyphen in regexp for better compatibility #468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Move hyphen in regexp for better compatibility #468

wants to merge 1 commit into from

Conversation

nicolasform
Copy link

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.

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.
@okcom125
Copy link

okcom125 commented Jun 4, 2020

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

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.

2 participants