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

Allow options to be passed to find/test/tokenize #317

Closed
connor4312 opened this issue Mar 3, 2021 · 1 comment
Closed

Allow options to be passed to find/test/tokenize #317

connor4312 opened this issue Mar 3, 2021 · 1 comment
Milestone

Comments

@connor4312
Copy link

I would like the defaultProtocol to be https, but I need to kind of hack around to make this work using find/test/tokenize since they don't take options. It looks like the default options are also not applied to them:

@nfrasser nfrasser added this to the 3.0 milestone Mar 8, 2021
@nfrasser nfrasser mentioned this issue Mar 11, 2021
@nfrasser
Copy link
Owner

Fixed in v3. linkify.find and linkify.tokenize now respects linkify.options.defaultProtocol. Each token output of linkify.tokenize also has a .toHref(defaultProtocol=options.defaultProtocol) method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants