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(text-utils): normalize accented words #473

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

miraclx
Copy link
Owner

@miraclx miraclx commented Apr 5, 2023

In cases like apple_music:track:1208190370 where the track name is "Solidarité", StripChar.RSspecChar treats the accented é as a non-alphanumeric character and strips it. Leaving "Solidarit" which leads to incorrect results.

This patch normalizes those inputs, which in the case of "Solidarité`, results in "Solidarite".

Issue originally derived from #395 (comment), #419.

@github-actions
Copy link

github-actions bot commented Apr 5, 2023


🐋 🤖

A docker image for this PR has been built!

docker pull freyrcli/freyrjs-git:pr-473
Base (master)
This Patch


What's this?

This docker image is a self-contained sandbox that includes all the patches made in this PR. Allowing others to easily use your patches without waiting for it to get merged and released officially.

For more context, see https://github.com/miraclx/freyr-js#docker-development.

@miraclx miraclx merged commit b382136 into master Apr 5, 2023
@miraclx miraclx deleted the miraclx/text-util-normalize-accented branch April 5, 2023 23:52
@miraclx miraclx mentioned this pull request Jun 20, 2023
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.

1 participant