elastic / makelogs

109 stars 44 forks source link

Adjust parseDays regex to allow signed days #44

Closed jen-huang closed 6 years ago

jen-huang commented 6 years ago

Small adjustment to regex test of the --days option to allow negative days.

I had a use case where I wanted to create logs between certain days in the past. After this change, I'm able to run this on July 25: node scripts/makelogs --days 7/-4 to create: Generating 14000 events from 2018-07-18T00:00:00Z to 2018-07-21T23:59:59Z

Also some tiny typo fixes.