Skip to content

Commit

Permalink
Added new underlinePrefix option
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed May 21, 2018
1 parent 0094408 commit ddeaa80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"displayLabel": true,
"displayTimestamp": false,
"underlineLabel": true,
"underlineMessage": false
"underlineMessage": false,
"underlinePrefix": false
}
},
"xo": {
Expand Down
6 changes: 5 additions & 1 deletion signale.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ class Signale {
const signale = this._meta();

if (additional.prefix) {
signale.push(additional.prefix);
if (this._config.underlinePrefix) {
signale.push(chalk.underline(additional.prefix));
} else {
signale.push(additional.prefix);
}
}

if (this._config.displayBadge && type.badge) {
Expand Down

0 comments on commit ddeaa80

Please sign in to comment.