Skip to content

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 #2

@stasovskyj

Description

@stasovskyj

Please update your class. Line 1365
if (!preg_match("/^[\w-:]+$/", $tag)) // this will not work in PHP >= 7.3
use :
if (!preg_match("/^[\w\-:]+$/", $tag))
And change the line 684 to
$pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions