Skip to content

Commit 0e3c8a8

Browse files
committed
set all padStart space to 8
1 parent cfc50f5 commit 0e3c8a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

implement-shell-tools/wc/customWc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ const pathArray = argumentArray;
2222
const options = program.opts();
2323

2424
function padStartNumbers(...args) {
25-
const space = [3, 4, 4];
25+
const space = 8;
2626
const numberStringArray = [];
2727
for (let index = 0; index < args.length; index++) {
28-
numberStringArray.push(String(args[index]).padStart(space[index], " "));
28+
numberStringArray.push(String(args[index]).padStart(space, " "));
2929
}
3030
return numberStringArray.join("");
3131
}

0 commit comments

Comments
 (0)