# HG changeset patch # User Matthew Wild # Date 1665499265 -3600 # Node ID 249bf1a5386619244c70aa099a9190c23ec48e96 # Parent 27e1d43542742f68d7d3050bfc2ddd8a24fd3c16 util.jid: Add test for invalid domain but valid UTF-8 (thanks jonas) diff -r 27e1d4354274 -r 249bf1a53866 spec/util_jid_spec.lua --- a/spec/util_jid_spec.lua Tue Oct 11 13:35:09 2022 +0100 +++ b/spec/util_jid_spec.lua Tue Oct 11 15:41:05 2022 +0100 @@ -83,6 +83,7 @@ end); it("should fail for JIDs that fail stringprep", function () test("node@invalid-\128-server", nil, nil, nil); + test("node@invalid-\194\128-server", nil, nil, nil); test("@server", nil, nil, nil); test("node@server/invalid-\000-resource", nil, nil, nil); end);