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

GFM autolink extension (www. part): the word www matches #279

Open
wooorm opened this issue Sep 2, 2022 · 0 comments
Open

GFM autolink extension (www. part): the word www matches #279

wooorm opened this issue Sep 2, 2022 · 0 comments

Comments

@wooorm
Copy link

wooorm commented Sep 2, 2022

a www. b

Yields:

a www. b


It seems that when www. is found, it is then parsed again as a domain, of which the dot makes it valid, and then it gets truncated to exclude the dot.
Instead, I think a domain (with a dot) should be parsed after www..

a www.example b (probably not this one either)
a www.example.com b (this should of course work)

a www.example b (probably not this one either)
a www.example.com b (this should of course work)


Aside, it seems like dots aren’t needed at all:

https://example.com

https://example

http://example.com

http://example.com

www.example.com

www.example

https://example.com

https://example

http://example.com

http://example.com

www.example.com

www.example

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

1 participant