lambdabaa / dav

WebDAV, CalDAV, and CardDAV client for nodejs and the browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot specify filters with a text body

kewisch opened this issue · comments

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?