Content-Length: 797 | pFad | http://github.com/expressjs/serve-static/commit/2ceda4106d11449dad3cc69fe583901942400877.diff
44 diff --git a/scripts/version-history.js b/scripts/version-history.js index 0baecb7..7938e69 100644 --- a/scripts/version-history.js +++ b/scripts/version-history.js @@ -30,7 +30,7 @@ if (historyFileLines[0].indexOf('x') !== -1) { } historyFileLines[0] = VERSION + ' / ' + getLocaleDate() -historyFileLines[1] = repeat('=', historyFileLines[0].length) +historyFileLines[1] = '='.repeat(historyFileLines[0].length) fs.writeFileSync(HISTORY_FILE_PATH, historyFileLines.join('\n')) @@ -42,16 +42,6 @@ function getLocaleDate () { zeroPad(now.getDate(), 2) } -function repeat (str, length) { - var out = '' - - for (var i = 0; i < length; i++) { - out += str - } - - return out -} - function zeroPad (number, length) { return number.toString().padStart(length, '0') }Fetched URL: http://github.com/expressjs/serve-static/commit/2ceda4106d11449dad3cc69fe583901942400877.diff
Alternative Proxies: