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: Refactor tag matching #5

Merged
merged 1 commit into from
May 17, 2021
Merged

FIX: Refactor tag matching #5

merged 1 commit into from
May 17, 2021

Conversation

pmusaraj
Copy link
Contributor

Previously, we were returning a partial match, which caused some icons to not work for some tags. For example, if in your tag list setting you had:

  • news, question-circle
  • newsman, cog

The newsman tag's icon would not show at all, because we would match on "news" at a first check, but not on the second. The refactor fixes this and only checks once for exact matches.

PR also moves this code into a proper initializer (long overdue).

@pmusaraj pmusaraj merged commit b0e90f4 into main May 17, 2021
@CvX CvX deleted the exact-match-refactor branch May 18, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants