Skip to content

Commit ffb06f4

Browse files
committed
Improved the output of $.or and $.and.
1 parent b9dd5c5 commit ffb06f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes Logs
22

3+
## v1.0.2
4+
5+
- Improved the output of `$.or` and `$.and`.
6+
37
## v1.0.1
48

59
- Fixed lack of positive expression when `any` or `true` is used.

src/lib/langs/JavaScript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ implements C.ILanguageBuilder {
110110
return "true";
111111
}
112112

113-
conditions = this._dereplicate(conditions);
113+
conditions = this._dereplicate(conditions.filter((x) => x === "false"));
114114

115115
if (!conditions.length) {
116116

@@ -132,7 +132,7 @@ implements C.ILanguageBuilder {
132132
return "false";
133133
}
134134

135-
conditions = this._dereplicate(conditions);
135+
conditions = this._dereplicate(conditions.filter((x) => x === "true"));
136136

137137
if (!conditions.length) {
138138

0 commit comments

Comments
 (0)