fix: extend in some situations, like [[bd]@3 bd]

This commit is contained in:
Felix Roos 2025-06-19 11:33:22 +02:00
parent 67bfedb317
commit 15f3321b04
No known key found for this signature in database

View file

@ -84,7 +84,7 @@ function evaluator(node, scope) {
let pat; let pat;
if (type === 'plain' && typeof variable !== 'undefined') { if (type === 'plain' && typeof variable !== 'undefined') {
// some function names are not patternable, so we skip reification here // some function names are not patternable, so we skip reification here
if (['!', 'extend', '@', 'expand'].includes(value)) { if (['!', 'extend', '@', 'expand', 'square', 'angle'].includes(value)) {
return variable; return variable;
} }
pat = reify(variable); pat = reify(variable);