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 and simplify media regexes #143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legobeat
Copy link

@legobeat legobeat commented Jul 9, 2024

This fixes the media regex not picking up media URLS with characters in range 0-9+%.

Also fixes a apurious range and simplifies a bit.

@legobeat legobeat marked this pull request as ready for review July 10, 2024 00:28
Copy link
Owner

@codicocodes codicocodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this contribution! Very helpful!

Could you add a unit test for this? https://github.com/codicocodes/dotfyle/blob/main/src/lib/server/media/parser.spec.ts

Also could you double check the current tests pass as well, I did not add the unit tests to the pipeline yet I only use them for development specifically for the media matching.

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.

2 participants