Skip to content

Fix bug: Playback History search returns no results for uppercase letters #3801

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

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

svobs
Copy link
Contributor

@svobs svobs commented Jun 6, 2022


Description:
Looks like playback history searches are meant to be case-insensitive. But String.lowercased() was only called for one side of the comparison.

@svobs svobs force-pushed the history-search-uppercase-fix branch from d070e87 to 8051598 Compare July 14, 2022 06:13
@svobs
Copy link
Contributor Author

svobs commented Jul 14, 2022

UPDATE: I discovered there is a better way: String.localizedStandardContains(String). I have updated the fix to use this method, which in addition to being case insensitive, is also diacritic insensitive (e.g., é vs ë) and should work better for different locales.

@uiryuu uiryuu merged commit d0a4a78 into iina:develop Sep 22, 2022
@uiryuu
Copy link
Member

uiryuu commented Sep 22, 2022

Thanks for your fix!

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.

Playback History searches don't work for capital letters
2 participants