Skip to content

Commit

Permalink
Merge pull request #115 from nomic-ai/fix-composite-selection-check
Browse files Browse the repository at this point in the history
Fix composite selection check
  • Loading branch information
bmschmidt authored Jun 7, 2024
2 parents af41b42 + 88e3e7d commit e27a62f
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 e27a62f

Please sign in to comment.