Skip to content

Commit

Permalink
fix: generate angle brackets in release notes (electron#31757)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaurencin authored and t57ser committed Jan 25, 2022
1 parent 359888f commit a8a0c5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/release/notes/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ const getNoteFromClerk = async (ghKey) => {
.slice(PERSIST_LEAD.length).trim() // remove PERSIST_LEAD
.split(/\r?\n/) // split into lines
.map(line => line.trim())
.map(line => line.replace('&lt;', '<'))
.map(line => line.replace('&gt;', '>'))
.filter(line => line.startsWith(QUOTE_LEAD)) // notes are quoted
.map(line => line.slice(QUOTE_LEAD.length)); // unquote the lines

Expand Down

0 comments on commit a8a0c5e

Please sign in to comment.