conventional-changelog-angular 8.3.0 → 8.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/writer.js +5 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "conventional-changelog-angular",
3
3
  "type": "module",
4
- "version": "8.3.0",
4
+ "version": "8.3.1",
5
5
  "description": "Angular preset for conventional-changelog.",
6
6
  "author": "Steve Mao",
7
7
  "license": "ISC",
package/src/writer.js CHANGED
@@ -73,7 +73,11 @@ export function createWriterOpts() {
73
73
 
74
74
  if (context.host) {
75
75
  // User URLs.
76
- subject = subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, username) => {
76
+ subject = subject.replace(/`[^`]*`|\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (match, username) => {
77
+ if (!username) {
78
+ return match
79
+ }
80
+
77
81
  if (username.includes('/')) {
78
82
  return `@${username}`
79
83
  }