Skip to content

Commit

Permalink
Added new underlineSuffix option
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed May 21, 2018
1 parent ddeaa80 commit 8372dbd
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 @@ -43,7 +43,8 @@
"displayTimestamp": false,
"underlineLabel": true,
"underlineMessage": false,
"underlinePrefix": false
"underlinePrefix": false,
"underlineSuffix": false
}
},
"xo": {
Expand Down
6 changes: 5 additions & 1 deletion signale.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ class Signale {
}

if (additional.suffix) {
signale.push(additional.suffix);
if (this._config.underlineSuffix) {
signale.push(chalk.underline(additional.suffix));
} else {
signale.push(additional.suffix);
}
}

return signale.join(' ');
Expand Down

0 comments on commit 8372dbd

Please sign in to comment.