Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] uncorrect validation uuid #739

Closed
2 tasks done
kagegrifon opened this issue Nov 10, 2023 · 1 comment
Closed
2 tasks done

[BUG] uncorrect validation uuid #739

kagegrifon opened this issue Nov 10, 2023 · 1 comment
Labels

Comments

@kagegrifon
Copy link

Before you begin...

  • I have searched the existing issues
  • I am not using version 13.x of node (if so, please upgrade)

Description of the problem

Uncorrect validation result for '88e9d2ab-f749-2819-e053-647ed90a1e1f'

Checked in online validators for example https://www.freecodeformat.com/validate-uuid-guid.php

Recipe for reproducing

var validate = require("uuid").validate;

console.log({
  isValid: validate("88e9d2ab-f749-2819-e053-647ed90a1e1f"),
});


### Additional information

_No response_

### Environment

node v16.20.0
in package.json "uuid": "^9.0.1"
@kagegrifon kagegrifon added the bug label Nov 10, 2023
@broofa
Copy link
Member

broofa commented Nov 10, 2023

Whatever online validator you're using is incorrect. UUIDs must have a valid variant field.
CleanShot 2023-11-10 at 05 46 46@2x

@broofa broofa closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants