diff --git a/actions/package-release/dist/index.js b/actions/package-release/dist/index.js index 79c1ce7..214158b 100644 --- a/actions/package-release/dist/index.js +++ b/actions/package-release/dist/index.js @@ -37459,18 +37459,7 @@ const simpleGit = __nccwpck_require__(9103); const changelogContents = changelog .all - .filter((entry) => { - if (entry.message.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/)) { - return true; - } - - const gitmoji = gitmojis.find(g => entry.message.startsWith(g.code)); - if (gitmoji) { - return true; - } - - return false; - }) + .filter(entry => !!gitmojis.find(g => entry.message.startsWith(g.code) || entry.message.startsWith(g.emoji))) .map((entry) => { let message = entry.message; diff --git a/actions/package-release/index.js b/actions/package-release/index.js index c1dfca6..002aabe 100644 --- a/actions/package-release/index.js +++ b/actions/package-release/index.js @@ -51,18 +51,7 @@ const simpleGit = require('simple-git'); const changelogContents = changelog .all - .filter((entry) => { - if (entry.message.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/)) { - return true; - } - - const gitmoji = gitmojis.find(g => entry.message.startsWith(g.code)); - if (gitmoji) { - return true; - } - - return false; - }) + .filter(entry => !!gitmojis.find(g => entry.message.startsWith(g.code) || entry.message.startsWith(g.emoji))) .map((entry) => { let message = entry.message;