dateFormatLexer top-level property

Parser<Token<String>> dateFormatLexer
final

Implementation

final dateFormatLexer = (digit() &
        digit() &
        digit() &
        digit() &
        (char('-') &
                digit() &
                digit() &
                (char('-') & digit() & digit()).optional())
            .optional())
    .flatten()
    .token();