Skip to content
This repository
Browse code

Merge pull request #21 from twitter/mention_after_rt

Add a test case to extract @mention after RT.
  • Loading branch information...
commit 25a1e79d3b2a63dd77abe6fd92cc880057c88c77 2 parents f70a222 + f727de7
Keita Fujii keitaf authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 extract.yml
4 extract.yml
@@ -48,6 +48,10 @@ tests:
48 48 text: "@username\n@mention"
49 49 expected: ["username", "mention"]
50 50
  51 + - description: "Extract mentions after 'RT'"
  52 + text: "RT@username RT:@mention RT @test"
  53 + expected: ["username", "mention", "test"]
  54 +
51 55 - description: "DO NOT extract username preceded by !"
52 56 text: "f!@kn"
53 57 expected: []

0 comments on commit 25a1e79

Please sign in to comment.
Something went wrong with that request. Please try again.