diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 8bd993f30..b5ed15cf4 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -4607,6 +4607,22 @@ a -> b style.underline: true } +x +y.link: https://google.com +`, ``) + assert.Equal(t, (*d2graph.Scalar)(nil), g.Objects[0].Attributes.Style.Underline) + assert.Equal(t, "true", g.Objects[1].Attributes.Style.Underline.Value) + }, + }, + { + name: "glob-filter", + run: func(t *testing.T) { + g, _ := assertCompile(t, ` +*: { + &link: *google* + style.underline: true +} + x y.link: https://google.com z.link: https://yahoo.com diff --git a/testdata/d2oracle/TestSet/edge-arrowhead-filled/2.exp.json b/testdata/d2oracle/TestSet/edge-arrowhead-filled/2.exp.json index dd24e2e43..d4f4f21cc 100644 --- a/testdata/d2oracle/TestSet/edge-arrowhead-filled/2.exp.json +++ b/testdata/d2oracle/TestSet/edge-arrowhead-filled/2.exp.json @@ -79,6 +79,9 @@ "string": "*", "raw_string": "*" } + ], + "pattern": [ + "*" ] } },