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

Does not return www #75

Closed
krishnaTORQUE opened this issue Aug 16, 2021 · 2 comments
Closed

Does not return www #75

krishnaTORQUE opened this issue Aug 16, 2021 · 2 comments

Comments

@krishnaTORQUE
Copy link

Content: "Test Youtube https://www.youtube.com/watch?v=Nk9877d2rJw"

Returns ["https://youtube.com/watch?v=Nk9877d2rJw"]

Suppose to return ["https://www.youtube.com/watch?v=Nk9877d2rJw"]

Why its excluding www ?
Even when requireSchemeOrWww flag is true

@sindresorhus
Copy link
Owner

Even when requireSchemeOrWww flag is true

That option is about detection, not normalization.

@sindresorhus
Copy link
Owner

It makes no difference whether the www. is there or not in most cases. If you insist, you can change the behavior with the options: https://github.com/sindresorhus/get-urls#options (See the linked normalize-url options docs)

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

2 participants