Skip to content

Commit a2657fa

Browse files
authored
Merge pull request #1 from drupal-pattern-lab/feature/fix-and-extend-twig-regex
Fix Pattern Lab Twig Lineages When Using D8-friendly Twig Paths (Part 1 of 2)
2 parents 4490358 + e132ead commit a2657fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"extra": {
3131
"patternlab": {
3232
"config": {
33-
"lineageMatch": "{%([ ]+)?include( |\\()["\\']([A-Za-z0-9-_]+)["\\'](\\))?(.*)%}",
33+
"lineageMatch": "{%([ ]+)?(?:include|extends|embed)( |\\()["\\']([\\/.@A-Za-z0-9-_]+)["\\']([\\s\\S+]*?)%}",
3434
"lineageMatchKey": 3,
3535
"patternExtension": "twig",
3636
"twigDebug": false,

0 commit comments

Comments
 (0)