Skip to content

Commit 2c7461f

Browse files
committed
fix(core): ids facet bounds checking was inverted
1 parent 5786e57 commit 2c7461f

File tree

1 file changed

+2
-2
lines changed
  • packages/core/src/openbim/IDSSpecifications/src/facets

1 file changed

+2
-2
lines changed

packages/core/src/openbim/IDSSpecifications/src/facets/Facet.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export abstract class IDSFacet {
8484
let maxPass = true;
8585

8686
if (min !== undefined) {
87-
minPass = minInclusive ? value <= min : value < min;
87+
minPass = minInclusive ? value >= min : value > min;
8888
}
8989

9090
if (max !== undefined) {
91-
maxPass = maxInclusive ? value >= max : value > max;
91+
maxPass = maxInclusive ? value <= max : value < max;
9292
}
9393

9494
pass = minPass && maxPass;

0 commit comments

Comments
 (0)