laravel-minify
laravel-minify copied to clipboard
REGEX_VALID_HTML failing due to Catastrophic Backtracking
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);
}