We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b04a7a commit d55b465Copy full SHA for d55b465
changelog.js
@@ -15,10 +15,14 @@ const output = sep
15
const bodyJoined = body.join('\n');
16
return [hash, bodyJoined];
17
})
18
- .filter(([, body]) => /^[\w]+: [^ ]/.test(body))
+ // .filter(([, body]) => )
19
.map(([hash, bodyJoined]) => {
20
- const [section, body] = bodyJoined.split(/: /);
21
- return [hash, section, body];
+ const hasSection = /^[\w]+: [^ ]/.test(bodyJoined);
+ if (hasSection) {
22
+ const [section, body] = bodyJoined.split(/: /);
23
+ return [hash, section, body];
24
+ }
25
+ return [hash, 'misc', bodyJoined];
26
27
.reduce((acc, item) => {
28
const [, section] = item;
0 commit comments