mnbi / textrepo

A repository to store a note text with a timestamp
MIT License
0 stars 0 forks source link

A month and day pattern matches incorrectly (`FileSystemRepository#entries`) #47

Closed mnbi closed 4 years ago

mnbi commented 4 years ago

In the ri document of Repository#entries, 4 digits pattern specifies year only or month and day. However, in FileSystemRepository#entries, 4 digits pattern such "1116" matches to not only "Nov. 16th" but "11:16" or "11 minute 16 second".

That is, FileSystemRepository#entries("1116") might match the followings:

According to the spec (the ri doc), 1116 pattern must not match the 2nd and the 3rd ones.