Tue, 22 Sep 2015 12:06:21 +0200
stanzacmp: Compare children using the same strictness level
scansion/stanzacmp.lua | file | annotate | diff | comparison | revisions |
--- a/scansion/stanzacmp.lua Tue Sep 22 12:04:57 2015 +0200 +++ b/scansion/stanzacmp.lua Tue Sep 22 12:06:21 2015 +0200 @@ -83,7 +83,7 @@ if type(child2) == type(child) then if type(child) == "table" and child2.name == child.name and child2.attr.xmlns == child.attr.xmlns then -- Strict deep match - match = stanzas_strict_match(child, child2); + match = stanzas_match(child, child2); elseif type(child) == "string" then -- Text nodes, must be equal, ignoring leading/trailing whitespace match = trim(child) == trim(child2); end