Skip to content

Fix handling of arrays with blank strings#369

Draft
ShanaLMoore wants to merge 1 commit into
mainfrom
i769-snippet-issue
Draft

Fix handling of arrays with blank strings#369
ShanaLMoore wants to merge 1 commit into
mainfrom
i769-snippet-issue

Conversation

@ShanaLMoore

Copy link
Copy Markdown
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