diff --git a/test/linkify_test.exs b/test/linkify_test.exs index 910ba17..f3b129b 100644 --- a/test/linkify_test.exs +++ b/test/linkify_test.exs @@ -668,5 +668,19 @@ defmodule LinkifyTest do assert Linkify.link(text) == expected end + + test "IDN and punycode domain" do + text = "FrauBücher.com says Neiiighhh!" + + expected = "FrauBücher.com says Neiiighhh!" + + assert Linkify.link(text) == expected + + text = "xn--fraubcher-u9a.com says Neiiighhh!" + + expected = "xn--fraubcher-u9a.com says Neiiighhh!" + + assert Linkify.link(text) == expected + end end end