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

feat: Try to grab the date from the URL before going to the secondary… #409

Closed
wants to merge 0 commits into from

Conversation

andremacola
Copy link
Contributor

A small update to try to capture and validate the date from the URL before passing it to the secondary elements (which can be complicated depending on internationalization).

I’m looking at the examples from the other libraries you mentioned to see how we can further improve.

@ndaidong
Copy link
Collaborator

@andremacola yes, please review these packages to enhance your pull request. Both offer a wider range of selectors for extracting date information from HTML (here and here).

To address the inconsistent output issue, I recommend implementing more rigorous validation. For example, if a date cannot be detected, ensure the result is an empty string rather than undefined

@andremacola
Copy link
Contributor Author

I'm canceling this PR and organizing my fork. Soon I'll send more complete changes regarding the date.

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