tweet_parser icon indicating copy to clipboard operation
tweet_parser copied to clipboard

Generic link parser captures any text with a period inside

Open jrmontag opened this issue 5 years ago • 0 comments

Capturing this note for potential future enhancement. The current "generic link" regular expression matches any text of the form foo.bar including missed spaces between sentences, and email domains e.g. gmail.com. It would be helpful to improve the regex to reduce the number of false positive matches. https://github.com/twitterdev/tweet_parser/blob/3435de8367d36b483a6cfd8d46cc28694ee8a42e/tweet_parser/getter_methods/tweet_text.py#L303

jrmontag avatar Apr 03 '19 20:04 jrmontag