We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MLLinkLabel.m 文件中识别url的正则表达式少了一种情况,没法识别如 im.qq.com这种url.
The text was updated successfully, but these errors were encountered:
@JianrongHui
REGULAREXPRESSION(URLRegularExpression,@"(((http[s]{0,1}|ftp)://|)[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,6})(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)|(www.[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,6})(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)|(((http[s]{0,1}|ftp)://|)((?:(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d))))(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)")
这个你先试用着吧,这个我考虑下要不要加上。 因为已经用了这个库的人处理link的回调可能直接用的[NSURL URLWithString:linkText] (因为linkText就目前的正则来说肯定是有scheme头的),所以如果我改了的话,那些人的项目会出点小毛病。又不好直接返回一个加了http的linkText,就产生歧义了。当然如果他们都是用的linkValue,给linkValue自动加上http倒是合理。
[NSURL URLWithString:linkText]
Sorry, something went wrong.
@JianrongHui 我觉得你可以自己替换网址的正则表达式啊
No branches or pull requests
MLLinkLabel.m 文件中识别url的正则表达式少了一种情况,没法识别如 im.qq.com这种url.
The text was updated successfully, but these errors were encountered: