This fixes #30. Dates in ISO format were incorrectly being truncated before the first colon character. As mentioned in #30, a string 2013-06-06T10:53:59.763Z would be truncated to 2013-06-06T10 before being handed off to the converter function. Although the code was trying to specify that the string be split into only two parts by calling String.split(':', 2), this does not have the desired effect. The string is still split on all instances of the separator, and only the output array is truncated to the value of limit. See http://www.ecma-international.org/ecma-262/5.1/#sec-220.127.116.11
There was a subtle bug in the testParsing function that was causing the same unit test to be run for every expected pair. The key and pairs variables were declared in the wrong scope so they were being set to the last pair in the set and that last pair was being tested multiple times. Fixing this bug also uncovered two failing test cases, which were also fixed.
…s, and excludes
Fixed a dependency issue where there is no npm module patr@>0.2.6. Values can now have colons in them. Without this functionality, there is no way to use iso dates. Fix to iso date string regular expression where milliseconds were not being picked up. Added a couple of date parsing tests.