Cannot specify filters with a text body
kewisch opened this issue · comments
Philipp Kewisch commented
Some filters don't have body tags but a text body. Example:
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:prop-filter name="UID">
<C:text-match collation="i;octet"
>DC6C50A017428C5216A2F1CD@example.com</C:text-match>
</C:prop-filter>
</C:comp-filter>
</C:comp-filter>
</C:filter>
I imagine just checking if children
is a string or an array, and if it is a string then just set the body value instead. @gaye would that be ok?