Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pr): fix broken markdown when version contains '|' #6235

Closed
wants to merge 7 commits into from
Closed
5 changes: 3 additions & 2 deletions lib/workers/pr/body/updates-table.ts
Expand Up @@ -61,10 +61,11 @@ export function getPrUpdatesTable(config: BranchConfig): string {
for (const row of tableValues) {
let val = '|';
for (const column of tableColumns) {
const content = row[column]
val += ' ';
val += row[column]
? row[column].replace(/^@/, '@​').replace(/\|/g, '\\|')
: '';
val += ` ${content} |`;
val += ' |';
}
val += '\n';
rows.push(val);
Expand Down