We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a79c2f commit 10d7272Copy full SHA for 10d7272
parser/ndt.go
@@ -39,7 +39,7 @@ const (
39
//=========================================================================
40
41
// TODO - should this be optional?
42
-const dateDir = `^(?P<dir>\d{4}/\d{2}/\d{2}/)?`
+const dateDir = `^(./)?(?P<dir>\d{4}/\d{2}/\d{2}/)?`
43
44
// TODO - use time.Parse to parse this part of the filename.
45
const dateField = `(?P<date>\d{8})`
0 commit comments