fix: generate angle brackets in release notes (#31757)

This commit is contained in:
Michaela Laurencin 2021-11-09 17:06:59 -08:00 committed by GitHub
parent dfb3b24de1
commit 6bc5fa3758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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