We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 922097b commit 55f72b9Copy full SHA for 55f72b9
index.js
@@ -88,8 +88,12 @@ module.exports = {
88
width: maxLineWidth
89
};
90
91
+ // parentheses are only needed when a scope is present
92
+ var scope = answers.scope.trim();
93
+ scope = scope ? '(' + answers.scope.trim() + ')' : '';
94
+
95
// Hard limit this line
- var head = (answers.type + '(' + answers.scope.trim() + '): ' + answers.subject.trim()).slice(0, maxLineWidth);
96
+ var head = (answers.type + scope + ': ' + answers.subject.trim()).slice(0, maxLineWidth);
97
98
// Wrap these lines at 100 characters
99
var body = wrap(answers.body, wrapOptions);
0 commit comments