fix(engine-twig): twig include function syntax not matched by findPar… by hadl · Pull Request #1473 · pattern-lab/patternlab-node

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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

Reviewers

@JosefBredereck JosefBredereck JosefBredereck approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

2 participants

@hadl @JosefBredereck