can't detect such URL:@"5566http://w.t.cn/r/451"
yanzhiwei147 opened this issue · comments
arida commented
NSString *text = @"5566http://w.t.cn/r/451";
NSArray *urls = [TwitterText URLsInText:text];
====> it return empty array object, but i copy this string to Message and send it, it can detect this URL(w.t.cn/r/451)
I'm sorry can't resolve this problem.
Andrew Yates commented
@yanzhiwei147 So if you paste "5566http://w.t.cn/r/451" into Twitter.com it isn't seen as a valid URL. TwitterText replicates the behaviour of Twitter rather than iOS' Message app.
Satoshi Nakagawa commented
Yes, twitter-text doesn't detect the URL by spec.