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 the exact matching of vendor name when it contains special chars #166

Merged

Conversation

pengux
Copy link
Contributor

@pengux pengux commented Nov 4, 2019

Because the previous matching method was using regex, when the vendor's
name contain special chars, it will fail to match. This commit change
the regex matching to use strings.EqualFold instead.

Closes #165

Because the previous matching method was using regex, when the vendor's
name contain special chars, it will fail to match. This commit change
the regex matching to use `strings.EqualFold` instead.
@ghost ghost added the size/XS label Nov 4, 2019
@heimweh heimweh self-requested a review November 18, 2019 18:58
Copy link
Collaborator

@heimweh heimweh left a comment

Choose a reason for hiding this comment

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

Hi @pengux,

thanks for this fix! This LGTM 👍

@heimweh heimweh merged commit 25a10c2 into PagerDuty:master Nov 18, 2019
@pengux pengux deleted the pn/fix-special-chars-in-vendors-name branch January 21, 2020 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search of vendors with special characters is not working
2 participants