We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1d3cd7 commit 2065466Copy full SHA for 2065466
@commitlint/parse/src/index.test.ts
@@ -168,6 +168,17 @@ test('registers inline #', async () => {
168
expect(actual.body).toBe('things #reference');
169
});
170
171
+test('keep -side notes- in the body section', async () => {
172
+ const message =
173
+ 'type(some/scope): subject\n' +
174
+ '-hash-\n' +
175
+ '9b1aff905b638aa274a5fc8f88662df446d374bd';
176
+
177
+ const actual = await parse(message);
178
179
+ expect(actual.body).toBe('-hash-\n' + '9b1aff905b638aa274a5fc8f88662df446d374bd');
180
+});
181
182
test('parses references leading subject', async () => {
183
const message = '#1 some subject';
184
const opts = await require('conventional-changelog-angular');
0 commit comments