Skip to content

Commit

Permalink
fix bug in op list check
Browse files Browse the repository at this point in the history
  • Loading branch information
RLesser committed Jun 7, 2024
1 parent af41b42 commit 88e3e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Bitmask> {
Expand Down

0 comments on commit 88e3e7d

Please sign in to comment.