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 for hashtags with Latin extended characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
keita committed Feb 10, 2012
1 parent cb9e649 commit 64d9818
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autolink.yml
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions extract.yml
Expand Up @@ -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"
Expand Down

0 comments on commit 64d9818

Please sign in to comment.