Skip to content

Commit 0e09f9e

Browse files
committed
Add GlimmerBlockStatement to dynamic determination
1 parent eb03e6b commit 0e09f9e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/rules/template-no-invalid-link-text.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ function getTextContentResult(node) {
44
if (node.type === 'GlimmerTextNode') {
55
return { text: node.chars.replaceAll(' ', ' '), hasDynamic: false };
66
}
7-
if (node.type === 'GlimmerMustacheStatement' || node.type === 'GlimmerSubExpression') {
7+
if (
8+
node.type === 'GlimmerMustacheStatement' ||
9+
node.type === 'GlimmerSubExpression' ||
10+
node.type === 'GlimmerBlockStatement'
11+
) {
812
return { text: '', hasDynamic: true };
913
}
1014
if (node.type === 'GlimmerElementNode' && node.children) {

0 commit comments

Comments
 (0)