better-commits 1.17.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -28,4 +28,4 @@ ${e.closes} ${e.ticket}`),u&&e.trailer&&(a+=o?`
28
28
 
29
29
  ${c.dim(e.trailer)}`:`
30
30
 
31
- ${e.trailer}`),h&&(a=a.replaceAll('"','\\"')),a}export{Y as main};
31
+ ${e.trailer}`),h&&(a=a.replaceAll('"','\\"').replaceAll("`","\\`")),a}export{Y as main};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "better-commits",
3
3
  "private": false,
4
- "version": "1.17.0",
4
+ "version": "1.17.1",
5
5
  "description": "A CLI for creating better commits following the conventional commits specification",
6
6
  "author": "Erik Verduin (https://github.com/everduin94)",
7
7
  "type": "module",
package/src/index.ts CHANGED
@@ -502,7 +502,7 @@ function build_commit_string(
502
502
  }
503
503
 
504
504
  if (escape_quotes) {
505
- commit_string = commit_string.replaceAll('"', '\\"');
505
+ commit_string = commit_string.replaceAll('"', '\\"').replaceAll("`", "\\`");
506
506
  }
507
507
 
508
508
  return commit_string;