diff options
author | Kim Alvefur <zash@zash.se> | 2024-11-17 13:40:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-11-17 13:40:20 +0100 |
commit | 885fde62be7244c5b2c978c97dcac0e80a1c9450 (patch) | |
tree | c68c111d3633acf0e091b90791ef1f03e1e56039 /spec | |
parent | 00584c4d610a381e4181ab438102420aa601f310 (diff) | |
download | prosody-885fde62be7244c5b2c978c97dcac0e80a1c9450.tar.gz prosody-885fde62be7244c5b2c978c97dcac0e80a1c9450.zip |
util.stanza: Handle Clark notation for attributes in :find()
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util_stanza_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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); |