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

Commit

Permalink
Add test cases to make sure not to extract hashtags which are part of…
Browse files Browse the repository at this point in the history
… URL.
  • Loading branch information
keita committed Mar 28, 2012
1 parent 25a1e79 commit c13a402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extract.yml
Expand Up @@ -713,6 +713,10 @@ tests:
text: "#http://twitter.com #https://twitter.com"
expected: []

- description: "DO NOT extract hashtag if it's a part of URL"
text: "http://twitter.com/#hashtag twitter.com/#hashtag"
expected: []

- description: "Extract hashtags with Latin extended characters"
text: "#Azərbaycanca #mûǁae #Čeština #Ċaoiṁín"
expected: ["Azərbaycanca", "mûǁae", "Čeština", "Ċaoiṁín"]
Expand Down

0 comments on commit c13a402

Please sign in to comment.