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

linkify convert any word preceded by // to a link #206

Closed
gouzal-pi opened this issue Jun 29, 2017 · 3 comments
Closed

linkify convert any word preceded by // to a link #206

gouzal-pi opened this issue Jun 29, 2017 · 3 comments

Comments

@gouzal-pi
Copy link

gouzal-pi commented Jun 29, 2017

Hey, Thanks a lot for this useful plugin.
I just have an issue, linkify convert any word preceded by // to a link.
for example, those following words will be converted to a link:
//test
//gitHub
//google

is that okey? or did I miss something?
I am using:

  • linkify.min.js
  • linkify-jquery.min
@gouzal-pi gouzal-pi changed the title convert any word preceded by // to a link linkify convert any word preceded by // to a link Jun 29, 2017
@hongbo-miao
Copy link

Met same issue.

Sometimes when I have comment by // in the content, it will be linkified:

<p>//something</p>

will be linkified to

<a href="//something" target="_blank">//something</a></p>

which is unexpected.

@agurtovoy
Copy link

Workaround:

linkifyHtml( text, {
    validate: {
        url: str => str.indexOf( "//" ) !== 0
    }
} );

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

Fixed in v3

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

4 participants