Permalink
Browse files

Add test cases to make sure not to extract hashtags which are part of…

… URL.
  • Loading branch information...
1 parent 25a1e79 commit c13a402f665783091ca318fe4313ae2e2d1a281b @keitaf keitaf committed Mar 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 extract.yml
View
@@ -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"]

0 comments on commit c13a402

Please sign in to comment.