Skip to content

Commit

Permalink
refactor(helper/mail_to): set memoize size to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Oct 13, 2021
1 parent c4c86ca commit 5667faa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/plugins/helper/mail_to.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ function mailToHelper(path, text, options = {}) {
return htmlTag('a', attrs, text);
}

module.exports = moize.deep(mailToHelper);
module.exports = moize(mailToHelper, {
maxSize: 10,
isDeepEqual: true
});

0 comments on commit 5667faa

Please sign in to comment.