stanzacmp: Compare children using the same strictness level

Tue, 22 Sep 2015 12:06:21 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 22 Sep 2015 12:06:21 +0200
changeset 33
227bc1fe52e9
parent 32
0eabed6c91e7
child 34
946c7d13faac

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

mercurial