Skip to content

Commit

Permalink
Fixing TypeError
Browse files Browse the repository at this point in the history
[Fixing TypeError: quotation(...).join is not a function. ](adamhollett#4)
  • Loading branch information
kostasx authored Jan 2, 2018
1 parent 8912cf5 commit 612d0cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function attacher(processor, options) {
if (pattern.omit && !replace.length) {
message = 'Remove ' + value;
} else {
message = 'Replace ' + value + ' with ' +
quotation(replace, '“', '”').join(', ');

message = 'Replace ' + value + ' with ' + quotation(replace, '“', '”');
if ( message instanceof Array ){ message.join(', '); }
if (pattern.omit) {
message += ', or remove it';
}
Expand Down

0 comments on commit 612d0cc

Please sign in to comment.