-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Editor: Better normalize strings for hierarchical term filtering #70178
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
Conversation
Size Change: +32 B (0%) Total Size: 1.85 MB
ℹ️ View Unchanged
|
This comment was marked as outdated.
This comment was marked as outdated.
da0f9ed
to
6da7238
Compare
6da7238
to
428f0e4
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Works fine for both half-width and full-width character searches.
Before
Filter by half-width characters | Filter by full-width characters |
---|---|
After
Filter by half-width characters | Filter by full-width characters |
---|---|
- Do we add a changelog entry about exposing the
normalizeTextString
function as a private API? - I think
FlatTermSelector
needs to be fixed as well to fully resolve #70169.
This might be a regression introduced by #70180. It seems that it is no longer possible to search using full-width characters in the ✅Filtering by half-width characters ❌ Filtering by full-width characters I'm trying to fix it with #70232. |
Odd, I thought we fixed the |
…dPress#70178) Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mayank-Tripathi32 <mayanktripathi32@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: fumikito <takahashi_fumiki@git.wordpress.org>
What?
Closes #70169.
Related #70180.
PR improves unitcode handling when searching hierarchical terms in the editor.
Why?
See #70169.
How?
Expose
normalizeTextString
as a private API and use it for text normalization in the filter matcher.Testing Instructions
PlayStation 2
andPlayStation 2
. Note: Copy the names.Testing Instructions for Keyboard
Same.
Screenshots or screencast
CleanShot.2025-05-27.at.17.14.55.mp4