Skip to content

Commit

Permalink
fix: markdown table cell
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jun 15, 2020
1 parent 12c6698 commit 2c40a01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/workers/pr/body/updates-table.ts
Expand Up @@ -61,7 +61,9 @@ export function getPrUpdatesTable(config: BranchConfig): string {
for (const row of tableValues) {
let val = '|';
for (const column of tableColumns) {
val += ` ${row[column].replace(/^@/, '@​')} |`;
val += ` ${row[column]
.replace(/^@/, '@​')
.replace(/\|/g, '\\|')} |`;
}
val += '\n';
rows.push(val);
Expand Down

0 comments on commit 2c40a01

Please sign in to comment.