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

Make spotify link recognition more robust using regex. #34

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

ItsRumo
Copy link
Contributor

@ItsRumo ItsRumo commented Jun 20, 2023

Changed the string based link recognition to a more robust regex based one.
This was motivated by some peoples spotify share links having additional paths before the track id.

@MarcDonald
Copy link
Owner

MarcDonald commented Jun 23, 2023

Hey @ItsRumo, thanks for the PR!

Did a bit of testing and it looks like this pattern doesn't pick up a track link without any query params https://regex101.com/r/GMWAp4/4

image

@MarcDonald
Copy link
Owner

Fantastic thank you!

@ItsRumo
Copy link
Contributor Author

ItsRumo commented Jun 23, 2023

If the regex ever acts up feel free to throw it my way.

@MarcDonald MarcDonald merged commit 46967d9 into MarcDonald:main Jun 23, 2023
2 checks passed
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.

None yet

2 participants