Skip to content

Commit

Permalink
Use lodash fp instead of lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
Convly committed Jan 10, 2023
1 parent 6f07d33 commit 56aa69f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const _ = require('lodash');
const { trim } = require('lodash/fp');
const {
template: { createLooseInterpolationRegExp, createStrictInterpolationRegExp },
} = require('@strapi/utils');
Expand Down Expand Up @@ -33,7 +33,7 @@ const matchAll = (pattern, src) => {
while ((match = regexPatternWithGlobal.exec(src))) {
const [, group] = match;

matches.push(_.trim(group));
matches.push(trim(group));
}

return matches;
Expand Down

0 comments on commit 56aa69f

Please sign in to comment.