Skip to content

%_H%M format fails to parse space-padded hour followed by minutes " 731" #1734

@knoc-off

Description

@knoc-off

The format string "%_H%M" fails to parse the input " 731" (space + 7 + 31). According to the documentation, %_H should handle space-padded hours and %M should parse the following minutes, but the parser appears unable to correctly separate the hour from the minutes when using space padding.

here is a playground link:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=a8de6a451e19206a86142264531042b8

what im expecting: " 731" -> hour 7, minute 31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions