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

mailto: 链接有问题 #40

Closed
tylerlong opened this issue Mar 10, 2015 · 5 comments
Closed

mailto: 链接有问题 #40

tylerlong opened this issue Mar 10, 2015 · 5 comments

Comments

@tylerlong
Copy link
Contributor

[email me](mailto:[email protected])

GitHub 正常:
email me

@tylerlong
Copy link
Contributor Author

一个临时的解决方案:

editormd.regex.atLink = /(?:^|\W)@(\w+)/g;

@pandao
Copy link
Owner

pandao commented Mar 10, 2015

这个正则不行,我这边加了一个是否为邮箱地址的判断。

@tylerlong
Copy link
Contributor Author

正则是没办法精确判断邮箱的。

比如:a@b 也可以是合法的邮箱 b 是本地的server host name

@pandao
Copy link
Owner

pandao commented Mar 11, 2015

test@locahost 之类的就不自动转成链接了。

@pandao
Copy link
Owner

pandao commented Mar 11, 2015

@v1.3.0 fixed.

@pandao pandao closed this as completed Mar 11, 2015
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

2 participants