uri-templates/uritemplate-test — pull request #27 by fxa (2013-01-31 19:20:12+00:00)
Title: Prefix modifier and exploded tests

Hi there,
during refactoring of my varspec parser (cyclomatic complexity reached 20 meanwhile!) I found, that the parser misses some strange corner cases.
One was {var:011} -> my parser used the build in parseInt, which interpreted 011 as octal number and returned 9. {var:08} parsed only the 0, so the length was zero. {var:} returned a NaN. {?} returned a varspec with an empty name and so on.