Skip to content

Commit 3f73a4b

Browse files
committed
Merge branch 'chore/collapseLeadingSlashes' of https://github.com/Ayoub-Mabrouk/serve-static into chore/collapseLeadingSlashes
2 parents d3f9d3c + fbf723b commit 3f73a4b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

scripts/version-history.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,5 @@ function repeat (str, length) {
5353
}
5454

5555
function zeroPad (number, length) {
56-
var num = number.toString()
57-
58-
while (num.length < length) {
59-
num = '0' + num
60-
}
61-
62-
return num
56+
return number.toString().padStart(length, '0')
6357
}

0 commit comments

Comments
 (0)