From 885fde62be7244c5b2c978c97dcac0e80a1c9450 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 17 Nov 2024 13:40:20 +0100 Subject: util.stanza: Handle Clark notation for attributes in :find() --- spec/util_stanza_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'spec') diff --git a/spec/util_stanza_spec.lua b/spec/util_stanza_spec.lua index cabb27bf..f79f8cb9 100644 --- a/spec/util_stanza_spec.lua +++ b/spec/util_stanza_spec.lua @@ -580,6 +580,7 @@ describe("util.stanza", function() it("handles namespaced attributes", function() local s = st.stanza("root", { ["urn:example:namespace\1attr"] = "value" }, { e = "urn:example:namespace" }); assert.equal("value", s:find("@e:attr"), "finds prefixed attr") + assert.equal("value", s:find("@{urn:example:namespace}attr"), "finds clark attr") end) end); end); -- cgit v1.2.3