Skip to content

Commit

Permalink
Updating proof solution
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdish-15 committed Jan 11, 2025
1 parent 100b230 commit c76a231
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/largest-series-product/.meta/proof.ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export const largestProduct = (digits, seriesLength) => {
return 1;
}
if (seriesLength > digits.length) {
throw new Error('Span must be smaller than string length');
throw new Error('span must be smaller than string length');
}
if (seriesLength < 0) {
throw new Error('Span must be greater than zero');
throw new Error('span must not be negative');
}

if (!/^[0-9]+$/g.test(digits)) {
throw new Error('Digits input must only contain digits');
throw new Error('digits input must only contain digits');
}

let result = 0;
Expand Down

0 comments on commit c76a231

Please sign in to comment.