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

Match fuzzy filtering a bit more reliably in the new room list #4769

Merged
merged 1 commit into from Jun 17, 2020

Conversation

turt2live
Copy link
Member

@turt2live turt2live requested a review from a team June 16, 2020 14:47

// Note: we have to match the filter with the removeHiddenChars() room name because the
// function strips spaces and other characters (M becomes RN for example, in lowercase).
// We also doubly convert to lowercase to work around oddities of the library.
Copy link
Member

Choose a reason for hiding this comment

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

this feels wrong, can you give an example? I would think converting before is most correct

Copy link
Member Author

Choose a reason for hiding this comment

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

There are some languages out there which have characters that don't get squished with .toLowerCase() and thus get converted to uppercase representations on our end. I don't have specific examples, and would rather avoid digging it out.

This is actually what the old room list does, it just doesn't document it.

@turt2live turt2live requested a review from t3chguy June 16, 2020 16:17
@turt2live turt2live merged commit 3bdf3be into develop Jun 17, 2020
@turt2live turt2live deleted the travis/room-list/fuzzy-filter branch June 17, 2020 13:15
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.

New room list: Search results clear when you add a space after a matching string
2 participants