From 32cabd2f9cbb62ff30e136f2efde21f9aeade32b Mon Sep 17 00:00:00 2001 From: Dawid Rusnak Date: Wed, 20 Dec 2023 08:50:54 +0100 Subject: [PATCH] fix: avoid using external Babel replacement in the worker function --- .../components/molecules/LogOutput/createSearchScannerFn.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/web/src/components/molecules/LogOutput/createSearchScannerFn.ts b/packages/web/src/components/molecules/LogOutput/createSearchScannerFn.ts index f14914217..14f9dc85c 100644 --- a/packages/web/src/components/molecules/LogOutput/createSearchScannerFn.ts +++ b/packages/web/src/components/molecules/LogOutput/createSearchScannerFn.ts @@ -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]; }; };