dateFormatLexer top-level property
Implementation
final dateFormatLexer = (digit() &
digit() &
digit() &
digit() &
(char('-') &
digit() &
digit() &
(char('-') & digit() & digit()).optional())
.optional())
.flatten()
.token();