mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
Merge branch 'ci/danger_parse_backslash_in_releasenotes' into 'master'
ci(danger): Allow backslash in Release notes See merge request espressif/esp-idf!26241
This commit is contained in:
@@ -74,6 +74,10 @@ function check_entry(entry) {
|
|||||||
return [entry_str, `${indent}- \`No release notes\` comment shouldn't start with bullet.`].join('\n');
|
return [entry_str, `${indent}- \`No release notes\` comment shouldn't start with bullet.`].join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove a leading escaping backslash of the special characters, https://www.markdownguide.org/basic-syntax/#characters-you-can-escape
|
||||||
|
const escapeCharRegex = /\\([\\`*_{}[\]<>()+#-.!|])/g;
|
||||||
|
entry = entry.replace(escapeCharRegex, '$1');
|
||||||
|
|
||||||
const regex = /^(\s*)[-*+]\s+\[([^\]]+)\]\s+(.*)$/;
|
const regex = /^(\s*)[-*+]\s+\[([^\]]+)\]\s+(.*)$/;
|
||||||
const match = regex.exec(entry);
|
const match = regex.exec(entry);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
|
Reference in New Issue
Block a user