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

add .trim() to searchString #358

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

heysujal
Copy link
Contributor

Fixes Issue

Closes #356

Changes proposed

I have added trim() to searchString which removes the leading and trailing spaces which were earlier being taken into account as a part of actual query resulting in empty response.

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Before

image

After

image

@heysujal
Copy link
Contributor Author

@Cahllagerfeld Please review.

Copy link
Member

@Cahllagerfeld Cahllagerfeld left a comment

Choose a reason for hiding this comment

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

Nice work!

@Cahllagerfeld Cahllagerfeld merged commit db3ab9d into EddieHubCommunity:main Jun 24, 2023
2 checks passed
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.

Leading Empty spaces in query results in empty response in Search
2 participants