diff --git a/dist/index.js b/dist/index.js index 083415a..c395f84 100644 --- a/dist/index.js +++ b/dist/index.js @@ -87,7 +87,7 @@ var translateVerifierResult = function translateVerifierResult(result) { } if (result === 1) { - return "k"; + return "K"; } return (11 - result).toString(); diff --git a/src/index.js b/src/index.js index eba7d9b..f0fb695 100644 --- a/src/index.js +++ b/src/index.js @@ -67,7 +67,7 @@ export const translateVerifierResult = (result) => { } if (result === 1){ - return "k"; + return "K"; } return (11 - result).toString(); diff --git a/test/index.test.js b/test/index.test.js index 96812f1..92dd792 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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); });