Skip to content

isGuid('5c5e04ea-21ce-41b1-956a-43ee07200xxx') should return false #24

Description

@heg2

5c5e04ea-21ce-41b1-956a-43ee07200xxx is not a valid GUID (x is not allowed as character), but isGuid() still returns true.

Using this regex to test should fix the problem: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$;

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