diff --git a/CHANGELOG.md b/CHANGELOG.md index 9567251..d79634a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Fix: Double parenthesis with space around do not compile on Jobs.cz ## 3.2.1 - 2023-03-30 - Fix: Negative lookahead breaks parsing of element closing bracket diff --git a/src/Compiler/ComponentTagCompiler.php b/src/Compiler/ComponentTagCompiler.php index 4cf62f2..6870e0b 100644 --- a/src/Compiler/ComponentTagCompiler.php +++ b/src/Compiler/ComponentTagCompiler.php @@ -191,7 +191,9 @@ protected function getAttributesFromAttributeString(string $attributeString): st | # or \\\'[^\\\']+\\\' # Capture all that is between \'...\' but not `\'` | # or - \{[^\{]+\} # Capture all that is between {...} but not `{` + \{[^\{]+\} # Capture all that is between {...} but not `}` + | # or + \{\{[^\}]+\}\} # Capture all that is between {...} but not `}` | # or [^>]+ # Capture any character but not `>` )