Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

version() returns false positives for strings that are too large #7

@a-p-o

Description

@a-p-o

Maybe this is not how the library is intended to be used. If that is the case, then please close.

Steps to reproduce

var uuidValidate = require("uuid-validate")

// Behaves as expected
uuidValidate('b38d63b5-524f-468c-b1c8-942c8c2284325') // => false

uuidValidate.version('b38d63b5-524f-468c-b1c8-942c8c2284325') // => 4

Expected behavior

Would it make sense to have version() also return false if the UUID is invalid?

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