Skip to content

Extra text allowed after matching time with from_format() #371

Closed
@altendky

Description

@altendky

re.match() doesn't anchor to the end of the string thus allowing extra text without an error.

https://github.com/sdispater/pendulum/blob/94d28b0d3cb524ae02361bd1ed7ea03e2e655e4e/pendulum/formatting/formatter.py#L406-L407

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