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

Improve link type checker #2

Open
mrmartineau opened this issue Oct 3, 2023 · 0 comments
Open

Improve link type checker #2

mrmartineau opened this issue Oct 3, 2023 · 0 comments

Comments

@mrmartineau
Copy link
Owner

The link type checker is fairly "unintelligent" at the moment, it looks at the url/path and infers based on that. For example:

  • https://www.youtube.com/watch?v=ctEksNz7tqg would be video
  • something.jpg would be image

All the rules are in the types.ts file, but I'm sure they can be improved.

Does anyone have a better solution?

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

No branches or pull requests

1 participant