Skip to content

Commit 9283d29

Browse files
author
Dimitar Tachev
authored
Merge pull request #4566 from NativeScript/tachev/fix-workflow-warnings-windows
fix: fix the workflow warnings on Windows
2 parents 8b83f91 + 8f9178f commit 9283d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export function getMessageWithBorders(message: string, spanLength = 3): string {
389389
return "";
390390
}
391391

392-
const longestRowLength = message.split(EOL).sort((a, b) => { return b.length - a.length; })[0].length;
392+
const longestRowLength = message.split("\n").sort((a, b) => { return b.length - a.length; })[0].length;
393393
let border = "*".repeat(longestRowLength + 2 * spanLength); // * 2 for both sides
394394
if (border.length % 2 === 0) {
395395
border += "*"; // the * should always be an odd number in order to get * in each edge (we will remove the even *s below)
@@ -405,7 +405,7 @@ export function getMessageWithBorders(message: string, spanLength = 3): string {
405405
EOL,
406406
border + EOL,
407407
emptyRow,
408-
...message.split(EOL).map(row => formatRow(row)),
408+
...message.split("\n").map(row => formatRow(row.trim())),
409409
emptyRow,
410410
border + EOL,
411411
EOL

0 commit comments

Comments
 (0)