-
Notifications
You must be signed in to change notification settings - Fork 64
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
Urls with localhost:port number will not work #119
Comments
A more minimal example: const input = `<a href="https://localhost:80"></a>`
anchorme(input)
'<a href="<a href="https://localhost:80"></a">https://localhost:80"></a</a>>'
anchorme.list(input)
[
{
"start": 9,
"end": 33,
"string": "https://localhost:80\"></a",
"isURL": true,
"protocol": "https://",
"confirmedByProtocol": true,
"path": "/a",
"reason": "url"
}
]
anchorme.list(input, false)
// same as above, `skipHTML=false` makes no difference |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take e.g.: the url:
<p>check de link <a href="https://localhost:4200/forum/category/2">everyone</a></p>
and it will not work. You can check this on the demo page also: https://alexcorvi.github.io/anchorme.js/Expected outcome:
check the link everyone
-> where everyone is a link to https://localhost:4200/forum/category/2Actual Outcome:
check the link everyonehttps://localhost:4200/forum/category/2">everyone>
The text was updated successfully, but these errors were encountered: