Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Add test data for IDN #70

Merged
merged 1 commit into from Mar 11, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions extract.yml
Expand Up @@ -582,6 +582,16 @@ tests:
- url: "http://xn--ls8h.XN--ls8h.la/"
indices: [5, 33]

- description: "Extract URLs with IDN(not encoded)"
text: "test http://foobar.みんな/ http://foobar.中国/ http://foobar.پاکستان/ "
expected:
- url: "http://foobar.みんな/"
indices: [5, 23]
- url: "http://foobar.中国/"
indices: [24, 41]
- url: "http://foobar.پاکستان/"
indices: [42, 64]

hashtags:
- description: "Extract an all-alpha hashtag"
text: "a #hashtag here"
Expand Down