chore: fixing the matching and replace with same character
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user