diff --git a/test/cyrillic-ascii/other.js b/test/cyrillic-ascii/other.js index 7084d5c..e30c8bb 100644 --- a/test/cyrillic-ascii/other.js +++ b/test/cyrillic-ascii/other.js @@ -20,3 +20,8 @@ test('protocols without colon-slash-slash', t => { t.false(m('mailto:xn--l1adbb7cs@xn--80aswg.xn--p1ai')) t.false(m('tel:1234567890')) }) + +test('custom domains', t => { + t.true(m('xn--80aswg.xn--p1ai/%D0%B2%D0%BD%D1%83/%D1%82%D1%80%D0%B8', [])) + t.false(m('xn--80aswg.xn--p1ai/%D0%B2%D0%BD%D1%83/%D1%82%D1%80%D0%B8', ['рф'])) +}) diff --git a/test/cyrillic-unicode/other.js b/test/cyrillic-unicode/other.js index 10d8402..876958b 100644 --- a/test/cyrillic-unicode/other.js +++ b/test/cyrillic-unicode/other.js @@ -17,3 +17,8 @@ test('protocols without colon-slash-slash', t => { t.false(m('mailto:помощь@сайт.рф')) t.false(m('tel:1234567890')) }) + +test('custom domains', t => { + t.true(m('сайт.рф/вну/три', [])) + t.false(m('сайт.рф/вну/три', ['рф'])) +}) diff --git a/test/eng/other.js b/test/eng/other.js index 6474c3b..9bd179c 100644 --- a/test/eng/other.js +++ b/test/eng/other.js @@ -19,3 +19,8 @@ test('protocols without colon-slash-slash', t => { t.false(m('mailto:help@site.com')) t.false(m('tel:1234567890')) }) + +test('custom domains', t => { + t.true(m('site.com/in/side', [])) + t.false(m('site.com/in/side', ['com'])) +})