Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Twitter actually shows a mention if it is preceded with any mixed

case of the characters "r" and "t".
https://twitter.com/sono_inf/statuses/310385896321056769 provides
a lower case example. Extracted streams from Gnip and Datasift
confirm this behavior as well.
This work done on the dime of: Simply Measured simplymeasured.com
  • Loading branch information...
commit ef0a13136c6415240426f81298f8367f8cc7f89a 1 parent 0ad34dc
@kungfumike kungfumike authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 extract.yml
View
12 extract.yml
@@ -52,6 +52,18 @@ tests:
text: "RT@username RT:@mention RT @test"
expected: ["username", "mention", "test"]
+ - description: "Extract mentions after 'rt'"
+ text: "rt@username rt:@mention rt @test"
+ expected: ["username", "mention", "test"]
+
+ - description: "Extract mentions after 'Rt'"
+ text: "Rt@username Rt:@mention Rt @test"
+ expected: ["username", "mention", "test"]
+
+ - description: "Extract mentions after 'rT'"
+ text: "rT@username rT:@mention rT @test"
+ expected: ["username", "mention", "test"]
+
- description: "DO NOT extract username preceded by !"
text: "f!@kn"
expected: []
Please sign in to comment.
Something went wrong with that request. Please try again.