Skip to content

Commit

Permalink
fix: avoid using external Babel replacement in the worker function (#981
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rangoo94 authored Dec 20, 2023
1 parent eb85a68 commit 1057bf3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export const createSearchScannerFn = (
`
);
return (content: string) => {
[currentLineNumber, lineStartIndex] = scan(currentLineNumber, lineStartIndex, content, push);
const result = scan(currentLineNumber, lineStartIndex, content, push);
currentLineNumber = result[0];
lineStartIndex = result[1];
};
};

0 comments on commit 1057bf3

Please sign in to comment.