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: allow empty string in $contains #2179

Merged
merged 5 commits into from
Jul 18, 2023
Merged

Conversation

Barbapapazes
Copy link
Contributor

@Barbapapazes Barbapapazes commented Jul 18, 2023

πŸ”— Linked issue

fix #2158

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Hello,

I'm not sure if the fix must be in the ensureArray function or in the $contains function (src/runtime/query/match).

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Jul 18, 2023

βœ… Deploy Preview for nuxt-content canceled.

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit 0151ad7
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt-content/deploys/64b68878cf2deb0008995dc6

@Barbapapazes Barbapapazes changed the title fix: allow empty string in $contains fix: allow empty string in $contains Jul 18, 2023
@farnabaz
Copy link
Member

farnabaz commented Jul 18, 2023

Do you mind adding some tests for it in https://github.com/nuxt/content/blob/main/test/features/query/match.test.ts

Copy link
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘

@farnabaz farnabaz merged commit 2c76e2d into nuxt:main Jul 18, 2023
@farnabaz farnabaz mentioned this pull request Jul 18, 2023
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.

Type checking needed in "$contains" filter query
2 participants