From 88e3e7d3e9b58706adc7a303d82576ae59b0a7e9 Mon Sep 17 00:00:00 2001 From: Robert Lesser Date: Fri, 7 Jun 2024 15:29:17 -0400 Subject: [PATCH] fix bug in op list check --- src/selection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection.ts b/src/selection.ts index b73d43360..e5795d5c6 100644 --- a/src/selection.ts +++ b/src/selection.ts @@ -92,7 +92,7 @@ function isComposition(elems: unknown): elems is Composition { if (!Array.isArray(elems)) return false; const op = elems[0] as unknown; if (typeof op !== 'string') return false; - return ['AND', 'OR', 'XOR', 'NOT', 'ANY', 'ALL'].indexOf(op) == 0; + return ['AND', 'OR', 'XOR', 'NOT', 'ANY', 'ALL'].indexOf(op) > -1; } async function extractBitmask(tile: Tile, arg: CompArgs): Promise {