Skip to content

index out of range runtime error in slash_dmy.go #36

Closed
@cpalsulich

Description

@cpalsulich

The getDays method attempts to access array elements using a passed in month argument as an index. The problem is month can be larger than 12 because the regex defined in SlashDMY matches on dates in a mm/dd/yyyy format. So this means a date like 1/30/2023 will cause a panic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions