next : FILE_REGEXP : allow midfix dots

This commit is contained in:
bth 2026-08-27 10:28:31 -07:00
commit c32521b94b

View file

@ -21,7 +21,7 @@ const (
NEXT_NUM_ERROR = "failed to find number in last file"
)
const FILE_REGEXP = `(?m)^([0-9]+)\.[^\.]*\.*md$`
const FILE_REGEXP = `(?m)^([0-9]+)\..*\.md$`
// TODO: consider supporting a config file, since my preference for dots here is not precisely ISO8601.
const DATE_FORMAT = "2006.01.02"