twitter-archive / twitter-text-objc

An Objective-C implementation of Twitter's text processing library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't detect such URL:@"5566http://w.t.cn/r/451"

yanzhiwei147 opened this issue · comments

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.

@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.

Yes, twitter-text doesn't detect the URL by spec.