-
-
Notifications
You must be signed in to change notification settings - Fork 14
Fix for email domains with no letters #5
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
Conversation
GitHub does not link strings of the format mdast-util-gfm-autolink-literal@1.0.1 but will link if you add a letter to the label/domain. Emulate that behavior. Ref: remarkjs/remark#862
This comment has been minimized.
This comment has been minimized.
I can confirm that both algorithms employed by GH do not link them. I also tested some other semver versions:
react@0.11.1
react@0.12.0-rc1
react@0.14.0-alpha1
react@16.7.0-alpha.2
react@0.0.0-experimental-aae83a4b9
[ react@0.11.1
[ react@0.12.0-rc1
[ react@0.14.0-alpha1
[ react@16.7.0-alpha.2
[ react@0.0.0-experimental-aae83a4b9
react@0.11.1
react@0.12.0-rc1
react@0.14.0-alpha1
react@16.7.0-alpha.2
react@0.0.0-experimental-aae83a4b9
[ react@0.11.1
[ react@0.12.0-rc1
[ react@0.14.0-alpha1
[ react@16.7.0-alpha.2
[ react@0.0.0-experimental-aae83a4b9
Related to d9eacf4. Related to remarkjs/remark#862. Related to syntax-tree/mdast-util-gfm-autolink-literal#5.
Investigating some more. I think the only rule between whether something links is whether the last character is a digit?
react@a
react@1
react@1.a
react@1.1
react@1.a-b
react@1.a1b
react@1.1-b
react@1.1-alpha
react@1.1-alpha1
react@1.1-a
react@1.a-1
This comment has been minimized.
This comment has been minimized.
Related to d9eacf49. Related to remarkjs/remark#862. Related to syntax-tree/mdast-util-gfm-autolink-literal#5.
Related to d9eacf49. Related to remarkjs/remark#862. Related to syntax-tree/mdast-util-gfm-autolink-literal#5.
Related to d9eacf49. Related to remarkjs/remark#862. Related to syntax-tree/mdast-util-gfm-autolink-literal#5.
Related to d9eacf49. Related to remarkjs/remark#862. Related to syntax-tree/mdast-util-gfm-autolink-literal#5.
Related to d9eacf49. Related to remarkjs/remark#862. Related to syntax-tree/mdast-util-gfm-autolink-literal#5.
Uh oh!
There was an error while loading. Please reload this page.
Initial checklist
Description of changes
GitHub does not link strings of the format
mdast-util-gfm-autolink-literal@1.0.1 but will link if you add a letter
to the label/domain. Emulate that behavior.
Ref: remarkjs/remark#862