diff --git a/dist/hermes.cjs.js b/dist/hermes.cjs.js index 7922010..03d4e5f 100644 --- a/dist/hermes.cjs.js +++ b/dist/hermes.cjs.js @@ -1318,7 +1318,7 @@ class Hermes { if (i === 0) { count = value.length; } - else { + else if (value.length !== count) { return { count, valid: false }; } } diff --git a/dist/hermes.esm.js b/dist/hermes.esm.js index 7b3036d..8d79635 100644 --- a/dist/hermes.esm.js +++ b/dist/hermes.esm.js @@ -1314,7 +1314,7 @@ class Hermes { if (i === 0) { count = value.length; } - else { + else if (value.length !== count) { return { count, valid: false }; } } diff --git a/dist/hermes.iife.js b/dist/hermes.iife.js index 416de3f..f2b1902 100644 --- a/dist/hermes.iife.js +++ b/dist/hermes.iife.js @@ -1317,7 +1317,7 @@ var Hermes = (function (exports) { if (i === 0) { count = value.length; } - else { + else if (value.length !== count) { return { count, valid: false }; } } diff --git a/src/index.ts b/src/index.ts index 8dc27cd..cc2a449 100644 --- a/src/index.ts +++ b/src/index.ts @@ -146,7 +146,7 @@ class Hermes { const value = values[i]; if (i === 0) { count = value.length; - } else { + } else if (value.length !== count) { return { count, valid: false }; } }