Allow space to separate date and time (#300)

Fixes #231
This commit is contained in:
Marcin Białoń
2019-09-19 19:45:53 +02:00
committed by Thomas Pelletier
parent ec312409d3
commit 095a905e04
4 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -733,7 +733,7 @@ func (l *tomlLexer) run() {
}
func init() {
dateRegexp = regexp.MustCompile(`^\d{1,4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?(Z|[+-]\d{2}:\d{2})`)
dateRegexp = regexp.MustCompile(`^\d{1,4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}(\.\d{1,9})?(Z|[+-]\d{2}:\d{2})`)
}
// Entry point