fix: mondo setcps / setcpm

This commit is contained in:
Felix Roos 2025-09-21 16:09:10 +02:00
parent 8833d623f7
commit 86248328cc
No known key found for this signature in database
2 changed files with 16 additions and 3 deletions

View file

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