Skip to content
Snippets Groups Projects
Commit bd4563d6 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: check for column content before replacing

parent 1e0b8301
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,8 @@ export function getPrUpdatesTable(config: BranchConfig): string { ...@@ -62,8 +62,8 @@ export function getPrUpdatesTable(config: BranchConfig): string {
let val = '|'; let val = '|';
for (const column of tableColumns) { for (const column of tableColumns) {
const content = row[column] const content = row[column]
.replace(/^@/, '@​') ? row[column].replace(/^@/, '@​').replace(/\|/g, '\\|')
.replace(/\|/g, '\\|'); : '';
val += ` ${content} |`; val += ` ${content} |`;
} }
val += '\n'; val += '\n';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment