Skip to content

Commit

Permalink
fix default config object is unexpectedly overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 17, 2020
1 parent 92a13b5 commit 663951b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DEFAULT_SETTINGS = {
};

function plugin(options) {
const settings = Object.assign(DEFAULT_SETTINGS, options);
const settings = Object.assign({}, DEFAULT_SETTINGS, options);
const pad = !!settings.padSpaceAfter;
const emoticonEnable = !!settings.emoticon;

Expand Down

0 comments on commit 663951b

Please sign in to comment.