Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #58 from kungfumike/master
Browse files Browse the repository at this point in the history
Twitter actually shows a mention if it is preceded with any mixed
  • Loading branch information
jakl committed Sep 16, 2013
2 parents 0ad34dc + ef0a131 commit 4dee4ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extract.yml
Expand Up @@ -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: []
Expand Down

0 comments on commit 4dee4ac

Please sign in to comment.