Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix text_content operation for nullish values #176

Merged
merged 2 commits into from
Jan 6, 2022

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

Co-authored-by: Konnor Rogers <konnor5456@gmail.com>
@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.

None yet

2 participants