diff --git a/lib/BladeOne.php b/lib/BladeOne.php index 7b49590..407a466 100644 --- a/lib/BladeOne.php +++ b/lib/BladeOne.php @@ -3033,7 +3033,7 @@ protected function compileComponents($value) protected function parseParams($params): string { - preg_match_all('/([a-zA-Z0-9:-]*?)\s*?=\s*?(.+?)(\s|$)/ms', $params, $matches); + preg_match_all('/([a-zA-Z0-9:-]*?)\s*?=\s*?("?.+?"?|\'?.+?\'?)(\s|$)/ms', $params, $matches); $paramsCompiled = []; foreach ($matches[1] as $i => $key) { $value = str_replace('"', '', $matches[2][$i]);