laravel-minify icon indicating copy to clipboard operation
laravel-minify copied to clipboard

REGEX_VALID_HTML failing due to Catastrophic Backtracking

Open TBaker3 opened this issue 11 months ago • 3 comments

Had to dig to find why this package wasn't running.

Turns out the following function was returning false due to Catastrophic Backtracking

    protected function validHtml(string $value): bool
    {
        return (bool) preg_match(self::REGEX_VALID_HTML, $value);
    }

TBaker3 avatar Mar 14 '24 15:03 TBaker3