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

RUTs with missing thousands separators are validated as true #4

Open
piris-jose opened this issue Oct 4, 2024 · 0 comments
Open

RUTs with missing thousands separators are validated as true #4

piris-jose opened this issue Oct 4, 2024 · 0 comments
Labels
needs-fix Indicates a bug or issue that requires a fix or correction.

Comments

@piris-jose
Copy link

Describe the bug
As described in the title.

To Reproduce
Consider the following piece of code:

let rut = "11111.111-1" // An incorrect way to describe the RUT "11.111.111-1"
console.log(rutlib.validateRut(rut))

When running it, it prints "true"

Expected behavior
It must print "false" because the first (from left to right) thousands separator is missing.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version 131.0
@fvergaracl fvergaracl added the needs-fix Indicates a bug or issue that requires a fix or correction. label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-fix Indicates a bug or issue that requires a fix or correction.
Projects
None yet
Development

No branches or pull requests

2 participants