Skip to content

Comments

Fix text_content operation for nullish values#176

Merged
marcoroth merged 2 commits intomasterfrom
fix-text-content-operation-for-nullish-values
Jan 6, 2022
Merged

Fix text_content operation for nullish values#176
marcoroth merged 2 commits intomasterfrom
fix-text-content-operation-for-nullish-values

Conversation

@marcoroth
Copy link
Member

@marcoroth marcoroth commented Jan 6, 2022

Type of PR

Bug Fix

Description

This PR adds a check to make sure that we use the provided text parameter if it's not nullish

Why should this be added

The text_content operation always used an empty string for the text parameter if the value of the text parameter was nullish.

Previously if you passed in 0 as a value for text it would have still used the empty string instead.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

@marcoroth marcoroth requested a review from leastbad January 6, 2022 15:49
@marcoroth marcoroth merged commit fa77fb8 into master Jan 6, 2022
@marcoroth marcoroth deleted the fix-text-content-operation-for-nullish-values branch January 6, 2022 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants