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 handling of arrays with blank strings #369

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShanaLMoore
Copy link
Contributor

  • Updated the logic to correctly identify arrays that contain only blank or empty strings.
  • Replaced .blank? check with snippets.all?(&:blank?) to ensure arrays like [""] are handled as blank.
  • This prevents issues where non-empty arrays with blank elements were not treated as blank.

Story

Refs #issuenumber

Expected Behavior Before Changes

Expected Behavior After Changes

Screenshots / Video

Notes

- Updated the logic to correctly identify arrays that contain only blank or empty strings.
- Replaced `.blank?` check with `snippets.all?(&:blank?)` to ensure arrays like [""] are handled as blank.
- This prevents issues where non-empty arrays with blank elements were not treated as blank.
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.

1 participant