mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: generate angle brackets in release notes (#31757)
This commit is contained in:
committed by
GitHub
parent
dfb3b24de1
commit
6bc5fa3758
@@ -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('<', '<'))
|
||||
.map(line => line.replace('>', '>'))
|
||||
.filter(line => line.startsWith(QUOTE_LEAD)) // notes are quoted
|
||||
.map(line => line.slice(QUOTE_LEAD.length)); // unquote the lines
|
||||
|
||||
|
||||
Reference in New Issue
Block a user