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

Add option to overwrite the default prefilter for links #247

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

Conversation

leanbalma
Copy link

This PR intents to fix some issues a few users have been having. For example, #183 and #134. The current implementation also won't linkify some valid links, like just "github.com".

What I did is introduce a new linkifyPrefilter option, which lets the user to write their own prefilter, instead of the default prefilter. The user could also make the function to return true if he/she wants to disable the prefilter.

I haven't written any test yet, but I'll be placed to do it if you agree with this PR.

This PR fixes #183.

@coveralls
Copy link

coveralls commented Dec 5, 2016

Coverage Status

Coverage decreased (-0.05%) to 99.101% when pulling 66da440 on SpiderOak:custom-linkify-prefilter into a92f0a1 on jonschlinkert:dev.

@leanbalma
Copy link
Author

I've created this new PR based on the dev branch. Please, ignore the previous one (#245)

@jonschlinkert
Copy link
Owner

Hi, @leanbalma sorry for the delay. Would you mind adding a unit test or two so we can get coverage up and I can merge? thanks!

@coveralls
Copy link

coveralls commented Apr 19, 2017

Coverage Status

Coverage increased (+2.3%) to 99.149% when pulling b344065 on SpiderOak:custom-linkify-prefilter into 4298819 on jonschlinkert:dev.

@leanbalma
Copy link
Author

Hi @jonschlinkert! I've added the tests. It seems that we are good to go now :)

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.

None yet

3 participants