rubiii/nori — pull request #17 by moom (2012-06-29 11:27:59+00:00)
Title: Improved xs:time/xs:date/xs:dateTime regular expression matcher

Hi Daniel,

I've run into an issue while consuming a Savon SOAP response, a file name (doc-2011-09-09.pdf) containing a date string was converted into a date object, while it shouldn't be.

After digging into Nori, I found the 'advanced_typecasting' method in 'XMLUtilityNode' class is using a flawed regular expression to match strings to convert, which causes this issue.

I've updated the regular expression to make it work for me, and here's the commit for you to consider in case you want to update your code and gem.

Thanks.

Cheers,
Felix