Skip to content

Commit

Permalink
Merge pull request #934 from smukkejohan/patch-2
Browse files Browse the repository at this point in the history
Solve issue with EnhancedScript.prototype.findMissingMatchesInJSX only reporting parameter 't' as missing. Fixes #716
  • Loading branch information
inlife authored Nov 2, 2023
2 parents fddb217 + 1662ca7 commit 7980b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nexrender-core/src/tasks/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const wrapEnhancedScript = (job, settings, { dest, src, parameters = [], keyword
const script = this.stripCommentsFromScript(this.getJSXScript());

// Parse all occurrences of the usage of NX on the provided script.
const nxMatches = matchAll(script, this.getRegex("searchUsageByMethod")("get", "gm")).toArray();
const nxMatches = [...script.matchAll(this.getRegex("searchUsageByMethod")("get", "gm"))];

if (nxMatches && nxMatches.length > 0 ) {
nxMatches.forEach( match => {
Expand Down

0 comments on commit 7980b8d

Please sign in to comment.