Skip to content

Commit

Permalink
fix: condition "false"
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 17, 2024
1 parent 4b55cdd commit 9bbd374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,10 @@ function checkCondition(condition, value) {
const operatorMatch = condition.match(/(<=|>=|<|>)(.+)/);
if (operatorMatch)
condition = operatorMatch[2].trim()
condition = parseCondition(condition);

// TODO: why parse updated conditin to boolean false
if (condition !== 'false')
condition = parseCondition(condition);
let result;

if (Array.isArray(value) && !(typeof condition === 'object')) {
Expand Down

0 comments on commit 9bbd374

Please sign in to comment.