Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(engine-twig): twig include function syntax not matched by findPar… #1473

Merged

Conversation

hadl
Copy link
Contributor

@hadl hadl commented Jan 15, 2023

Closes: #1471

Summary of changes:
Updated findPartials regex to match twig include function syntax.

https://regexr.com/769fq

In addition the logic from engine-twig-php for findPartials and findPartial was merged to fit the new regex and locating the patterns correctly.

@JosefBredereck JosefBredereck merged commit cfa792b into pattern-lab:dev Jan 30, 2023
@hadl hadl deleted the feature/1471-twing-include-function-regex branch February 26, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

engine-twig-php: include-function syntax not matched by findPartials
2 participants