Skip to content

Commit e132ead

Browse files
committed
Testing updated and simplified regex which also fixes lineages when using D8 friendly Twig paths
1 parent c07bf8a commit e132ead

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)