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: support multi-lang source feed lookup #574

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

miraclx
Copy link
Owner

@miraclx miraclx commented Sep 12, 2023

We previously used the library stripchar to remove symbols from the query sent off to YouTube( Music).

The logic in there was using the regex [^a-zA-Z 0-9] which removed all non-alphanumerics including non-Latin letters.

This isn't the behaviour we want. We want non-Latin letters to work as well.

So this patch defers to unicode categorizations and hand writes the replacement logic.

@github-actions
Copy link

github-actions bot commented Sep 12, 2023


🐋 🤖

A docker image for this PR has been built!

docker pull freyrcli/freyrjs-git:pr-574
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 3861d07 into master Sep 12, 2023
18 checks passed
@miraclx miraclx deleted the miraclx/multilang-source-feed-lookup branch September 12, 2023 00:21
@miraclx miraclx mentioned this pull request Jan 1, 2024
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