Skip to content

Commit 1501602

Browse files
committed
function name didn't make sense. moved replace to correct location
1 parent b46e9dc commit 1501602

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎index.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ const wrapString = (str, width) => {
4242

4343
const outputArray = (arr) => arr.join('\n')
4444

45-
const outputWrappedWithBGRightPadArr = (str, width) => {
45+
const outputWrappedWithBGRightPad = (str, width) => {
4646
return outputArray(
4747
colorArray(
4848
rightPadArray(
4949
wrapString(
50-
str.replace(/[\n\t]*/gm, ''), width
50+
str, width
5151
),
5252
width
5353
),
@@ -81,11 +81,11 @@ class Pair {
8181
}
8282
combine() {
8383
if(this.too_large){
84-
return outputWrappedWithBGRightPadArr(`
84+
return outputWrappedWithBGRightPad(`
8585
-- This patch section is too large to be displayed with
8686
this utility by default. If you want to show this section,
8787
add --show-large-hunks to your command for cli use --
88-
`, terminalWidth)
88+
`.replace(/[\n\t]*/gm, ''), terminalWidth)
8989
}
9090
// this.drawLines()
9191

0 commit comments

Comments
 (0)