Skip to content

Commit

Permalink
fix: check for valid value in list types of conditionals
Browse files Browse the repository at this point in the history
Closes #301
  • Loading branch information
zachowj committed Dec 6, 2020
1 parent 2694a81 commit 7fd9545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class BaseNode {
case 're':
return new RegExp(value);
case 'list':
return value.split(',').map((e) => e.trim());
return value ? value.split(',').map((e) => e.trim()) : [];
default:
return value;
}
Expand Down

0 comments on commit 7fd9545

Please sign in to comment.