chore: fixing the matching and replace with same character

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-11 13:48:17 +01:00
parent 36eb73bb8b
commit 06af8a33b3
@@ -34,7 +34,7 @@ jobs:
async function createChangeset(fileName, commitMessage, packages) {
const pkgs = packages.map(pkg => `'${pkg}': patch`).join('\n');
const message = commitMessage.replace(/(b|B)ump ([\S]+)/, 'Bump `$2`');
const message = commitMessage.replace(/([bB])ump ([\S]+)/, '$1ump `$2`');
const body = `---\n${pkgs}\n---\n\n${message}`;
await fs.writeFile(fileName, body);
}