Skip to content
This repository was archived by the owner on Apr 4, 2018. It is now read-only.
This repository was archived by the owner on Apr 4, 2018. It is now read-only.

.co domains are not considered urls #32

@pykler

Description

@pykler
In [26]: twitter_text.TwitterText('myweb.co').validation.tweet_length()
Out[26]: 8

In [27]: twitter_text.TwitterText('myweb.co').extractor.extract_urls()
Out[27]: []

where as

In [28]: twitter_text.TwitterText('myweb.com').extractor.extract_urls()
Out[28]: [u'myweb.com']

the twitter/twitter-text library parses this correctly, here is an example https://plnkr.co/edit/CrHLALTraGQTy0zptWkA?p=preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions