Skip to content

Commit

Permalink
fix(getRutVerifier): return upcased "K"
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailpozarski committed Sep 15, 2022
1 parent 483ef8b commit 7176f59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var translateVerifierResult = function translateVerifierResult(result) {
}

if (result === 1) {
return "k";
return "K";
}

return (11 - result).toString();
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const translateVerifierResult = (result) => {
}

if (result === 1){
return "k";
return "K";
}

return (11 - result).toString();
Expand Down
1 change: 1 addition & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ test("validRut", () => {
expect(validRut("12.148.514-1")).toBe(true);
expect(validRut("23379.716-2")).toBe(true);
expect(validRut("329382508")).toBe(true);
expect(validRut("18531474-k")).toBe(true);
expect(validRut("36128619-0")).toBe(false);
});

Expand Down

0 comments on commit 7176f59

Please sign in to comment.