npryce / adr-tools

Command-line tools for working with Architecture Decision Records
Other
4.56k stars 580 forks source link

Strip leading 0s to prevent octal interpretation #3

Closed doozr closed 8 years ago

doozr commented 8 years ago

I found I was unable to create more than 8 records because the adr-new code to increment the counter interpreted 0008 as an invalid octal number. Fix was to strip leading zeroes to force decimal interpretation.

npryce commented 8 years ago

Good catch!