diff options
author | Kim Alvefur <zash@zash.se> | 2022-08-17 19:04:30 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-08-17 19:04:30 +0200 |
commit | 8959868a28fb74e55ce41a9cb93d7e3524c7dc2b (patch) | |
tree | e167e55ba83a8eb91210348f33a042d84ef34daf /spec/scansion/pubsub_advanced.scs | |
parent | 2294d8b8e08fbf75985bd976bc32c79293a478ef (diff) | |
download | prosody-8959868a28fb74e55ce41a9cb93d7e3524c7dc2b.tar.gz prosody-8959868a28fb74e55ce41a9cb93d7e3524c7dc2b.zip |
util.stanza: Add method for extracting a single attribute value
Sometimes you only care about a single attribute, but the child tag
itself may be optional, leading to needing `tag and tag.attr.foo` or
`stanza:find("tag@foo")`.
The `:find()` method is fairly complex, so avoiding it for this kind of
simpler use case is a win.
Diffstat (limited to 'spec/scansion/pubsub_advanced.scs')
0 files changed, 0 insertions, 0 deletions