diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 19f41a60b..56f5b0088 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -1505,6 +1505,11 @@ x -> y: { text: `x: {link: https://not-google.com; tooltip: https://google.com}`, expErr: `d2/testdata/d2compiler/TestCompile/no_url_link_and_url_tooltip_concurrently.d2:1:44: Tooltip cannot be set to URL when link is also set (for security)`, }, + { + name: "url_link_non_url_tooltip_ok", + text: `x: {link: https://not-google.com; tooltip: note: url.ParseRequestURI might see this as a URL}`, + expErr: ``, + }, { name: "url_link_and_not_url_tooltip_concurrently", text: `x: {link: https://google.com; tooltip: hello world}`,