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.
1 parent 851e832 commit 2806b8eCopy full SHA for 2806b8e
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