Permalink
Browse files

Merge branch 'master' of github.com:twitter/twitter-text-conformance …

…into arabic_hebrew_thai_hashtags

Conflicts:
	autolink.yml
	extract.yml
  • Loading branch information...
2 parents def2757 + 923c63f commit 19e6896a418d4c6d209bcec4ddb537231563fe43 keita committed Feb 20, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 autolink.yml
  2. +4 −0 extract.yml
View
@@ -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>"
+
- description: "Autolink Arabic hashtag"
text: "Arabic hashtag: #فارسی #لس_آنجلس"
expected: "Arabic hashtag: <a href=\"https://twitter.com/#!/search?q=%23فارسی\" title=\"#فارسی\" class=\"tweet-url hashtag\">#فارسی</a> <a href=\"https://twitter.com/#!/search?q=%23لس_آنجلس\" title=\"#لس_آنجلس\" class=\"tweet-url hashtag\">#لس_آنجلس</a>"
View
@@ -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"]
+
- description: "Extract Arabic hashtags"
text: "#سیاست #ایران #السياسة #السياح #لغات #اتمی #کنفرانس #العربية #الجزيرة #فارسی"
expected: ["سیاست", "ایران", "السياسة", "السياح", "لغات", "اتمی", "کنفرانس", "العربية", "الجزيرة", "فارسی"]

0 comments on commit 19e6896

Please sign in to comment.