Skip to content

Implemented Trim of empty spaces of queryString search#58

Draft
PetarNeshkov wants to merge 2 commits intoMinkov:mainfrom
PetarNeshkov:remove-empty-spaces
Draft

Implemented Trim of empty spaces of queryString search#58
PetarNeshkov wants to merge 2 commits intoMinkov:mainfrom
PetarNeshkov:remove-empty-spaces

Conversation

@PetarNeshkov
Copy link
Contributor

@PetarNeshkov PetarNeshkov commented Nov 24, 2023

Closes: https://github.com/SoftUni-Internal/exam-systems-issues/issues/806#event-10817148661

Explanation: When we filter some properties and add additional spaces, the grid returns an empty table. In order to prevent this, we implement trim of searched input.

@PetarNeshkov PetarNeshkov marked this pull request as draft November 24, 2023 14:28
else if (int.TryParse(idAsString, out var entityIdInt))
{
id = entityIdInt;
id = entityIdInt.ToString().Trim();
Copy link
Collaborator

@gogo4ds gogo4ds Nov 24, 2023

Choose a reason for hiding this comment

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

How can entityIdInt have empty spaces? Isn't supposed to be integer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it for an additional check. Removing it.

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.

2 participants

Comments