Browse files

Add punycode test case

  • Loading branch information...
1 parent a51a2c7 commit 64578fb94b3920103d9c08cf6f7c0f6b98570ca3 Matt Sanford committed Jun 9, 2011
Showing with 5 additions and 0 deletions.
  1. +1 −0 README
  2. +4 −0 autolink.yml
View
1 README
@@ -45,6 +45,7 @@ If you are creating a new twitter-text library in a different programming langua
* [FIX] Add support for Russian hashtags
* [FIX] Add support for Korean hashtags
* [FIX] Add support for Japanese hashtags (all Katakana, all Hiragana or all Kanji, not mized scirpt)
+ * [FIX] Add support for autolinking punycode domain names and TLDs (via punycode)
* [DOC] Update README and License
* v1.3.1 - 2010-12-03 - [ Git tag v1.3.1 ]
View
4 autolink.yml
@@ -504,6 +504,10 @@ tests:
text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
+ - description: "Autolink an IDN (punycode) domain and TLD"
+ text: "See also: http://xn--80abe5aohbnkjb.xn--p1ai/"
+ expected: "See also: <a href=\"http://xn--80abe5aohbnkjb.xn--p1ai/\">http://xn--80abe5aohbnkjb.xn--p1ai/</a>"
+
- description: "Autolink URL should NOT autolink www...foo"
text: "Is www...foo a valid URL?"
expected: "Is www...foo a valid URL?"

1 comment on commit 64578fb

@hoverbird

LGTM!

Please sign in to comment.