Skip to content

Commit

Permalink
Allow only non-empty values (tokens are objects).
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Feb 3, 2025
1 parent 5eec19f commit 07f034a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const replace = options => {
break;
case 'object':
if (Array.isArray(replacementValue)) replacementValue = many(replacementValue);
replacement = () => replacementValue;
if (replacementValue) replacement = () => replacementValue;
break;
}
const stackDiffer = makeStackDiffer();
Expand Down

0 comments on commit 07f034a

Please sign in to comment.