Skip to content

Commit f402a2f

Browse files
authored
Fixing lineage config line (#45)
* Fixing lineage config line Mega PR: Merging Drupal Pattern Lab's Twig Pattern Engine Fork Back Into the Main Pattern Lab PHP Twig Pattern Engine Repo (#44) * updating dev-dev dependencies * fixing failing constraint * Testing regex updates meant for composer.json-based consumption. Not nearly as easy as copying over from the config.yml file... * Adding original for testing comparison * Testing updated and simplified regex which also fixes lineages when using D8 friendly Twig paths * Updating registered namespace to Drupal Pattern Lab * Revert "Updating registered namespace to Drupal Pattern Lab" This reverts commit ba07a6e. * updating info * Remove reference to Drupal Pattern Lab fork
1 parent 65324c7 commit f402a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

+1-1
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)