Skip to content

Commit 49038ad

Browse files
committed
updating the regex to support parens in twig partial calls
1 parent 2a4b226 commit 49038ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
},
3131
"extra": {
3232
"patternlab": {
33-
"config": {
34-
"lineageMatch": "{%([ ]+)?include ["\\']([A-Za-z0-9-_]+)["\\'](.*)%}",
35-
"lineageMatchKey": 2,
33+
"config": {
34+
"lineageMatch": "{%([ ]+)?include( |\\()["\\']([A-Za-z0-9-_]+)["\\'](\\))?(.*)%}",
35+
"lineageMatchKey": 3,
3636
"patternExtension": "twig",
3737
"twigDebug": false,
3838
"twigDefaultDateFormat": "",
@@ -45,4 +45,4 @@
4545
}
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)