Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test cases for hashtags with Latin extended characters.

  • Loading branch information...
commit 64d98185f7d78b3b92246806f7d20a3c6086f096 1 parent cb9e649
@keitaf keitaf authored
Showing with 8 additions and 0 deletions.
  1. +4 −0 autolink.yml
  2. +4 −0 extract.yml
View
4 autolink.yml
@@ -358,6 +358,10 @@ tests:
text: "Here’s a test tweet for you: #Ateş #qrşt #ştu #ş"
expected: "Here’s a test tweet for you: <a href=\"https://twitter.com/#!/search?q=%23Ateş\" title=\"#Ateş\" class=\"tweet-url hashtag\">#Ateş</a> <a href=\"https://twitter.com/#!/search?q=%23qrşt\" title=\"#qrşt\" class=\"tweet-url hashtag\">#qrşt</a> <a href=\"https://twitter.com/#!/search?q=%23ştu\" title=\"#ştu\" class=\"tweet-url hashtag\">#ştu</a> <a href=\"https://twitter.com/#!/search?q=%23ş\" title=\"\" class=\"tweet-url hashtag\">#ş</a>"
+ - description: "Autolink a hashtag with Latin extended character"
+ text: "#mûǁae"
+ expected: "<a href=\"https://twitter.com/#!/search?q=%23mûǁae\" title=\"#mûǁae\" class=\"tweet-url hashtag\">#mûǁae</a>"
+
urls:
- description: "Autolink URL with pipe character"
text: "text http://example.com/pipe|character?yes|pipe|character"
View
4 extract.yml
@@ -701,6 +701,10 @@ tests:
text: "#http://twitter.com #https://twitter.com"
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"]
+
hashtags_with_indices:
- description: "Extract a hastag at the start"
text: "#hashtag here"
Please sign in to comment.
Something went wrong with that request. Please try again.