We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 851e832 + 2806b8e commit 7c45a8aCopy full SHA for 7c45a8a
js/jsonlint/jsl.format.js
@@ -8,6 +8,7 @@ var jsl = typeof jsl === 'undefined' ? {} : jsl;
8
jsl.format = (function () {
9
10
function repeat(s, count) {
11
+ count = count < 0 ? 0 : count;
12
return new Array(count + 1).join(s);
13
}
14
0 commit comments