Skip to content

Commit 728a5a4

Browse files
authored
Merge pull request OSSPhilippines#77 from scinscinscin/v4
Fix vercel / endpoint
2 parents 1c74ab6 + 1b291f2 commit 728a5a4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

now.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
}
1919
],
2020
"env": {
21-
"VERSION": "1"
21+
"VERSION": "1",
22+
"FORCE_COLOR": "1"
2223
}
2324
}

src/utils/generateTable.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const getPosOfSeparator: (row: string, separator: string) => number[] = (
3434
let response: number[] = [];
3535
// Temporarily replace color codes as it breaks string.length
3636
while (row.includes(separator)) {
37-
row = row.replace(separator, "");
37+
row = row.replace(separator, "~");
3838
}
3939

4040
let charArray = row.split("");
4141
charArray.forEach((char, index) => {
42-
if (char === "") {
42+
if (char === "~") {
4343
response.push(index);
4444
}
4545
});
@@ -229,7 +229,7 @@ export const generateTable: (
229229
rows.forEach((row) => {
230230
// Temporarily replace color codes as it breaks string.length
231231
while (row.includes(boxArt.singleVertical)) {
232-
row = row.replace(boxArt.singleVertical, "");
232+
row = row.replace(boxArt.singleVertical, "~");
233233
}
234234

235235
let rowLength = row.length;

0 commit comments

Comments
 (0)