Skip to content

Commit

Permalink
fix: Fix 'in' conditional
Browse files Browse the repository at this point in the history
- Spaces were not being removed around elements before comparing them
  • Loading branch information
zachowj committed Jan 13, 2020
1 parent 1195052 commit 78a3d22
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 @@ -294,7 +294,7 @@ class BaseNode {
case 're':
return new RegExp(value);
case 'list':
return value.split(',');
return value.split(',').map(e => e.trim());
default:
return value;
}
Expand Down

0 comments on commit 78a3d22

Please sign in to comment.