diff --git a/now.json b/now.json index 49a4965..e5fd3be 100644 --- a/now.json +++ b/now.json @@ -18,6 +18,7 @@ } ], "env": { - "VERSION": "1" + "VERSION": "1", + "FORCE_COLOR": "1" } } diff --git a/src/utils/generateTable.ts b/src/utils/generateTable.ts index ae65f8f..8b468a4 100644 --- a/src/utils/generateTable.ts +++ b/src/utils/generateTable.ts @@ -34,12 +34,12 @@ const getPosOfSeparator: (row: string, separator: string) => number[] = ( let response: number[] = []; // Temporarily replace color codes as it breaks string.length while (row.includes(separator)) { - row = row.replace(separator, "│"); + row = row.replace(separator, "~"); } let charArray = row.split(""); charArray.forEach((char, index) => { - if (char === "│") { + if (char === "~") { response.push(index); } }); @@ -229,7 +229,7 @@ export const generateTable: ( rows.forEach((row) => { // Temporarily replace color codes as it breaks string.length while (row.includes(boxArt.singleVertical)) { - row = row.replace(boxArt.singleVertical, "│"); + row = row.replace(boxArt.singleVertical, "~"); } let rowLength = row.length;