From db88758cbdadf214728d5ea028fa5705453d6ffc Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Sat, 5 Sep 2026 17:47:26 -0400 Subject: [PATCH] fix: preserve linear PowerShell tokenization --- scripts/lib/powershell-destructive-command.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/powershell-destructive-command.js b/scripts/lib/powershell-destructive-command.js index aea4e3f20..f99216016 100644 --- a/scripts/lib/powershell-destructive-command.js +++ b/scripts/lib/powershell-destructive-command.js @@ -944,11 +944,11 @@ function parseStatements(input) { wordHasQuotedContent && !wordHasUnquotedContent ? wordQuoteKind : null ); segmentTokenSources.push(wordSource); - segmentInlineValueQuoteKinds = [...segmentInlineValueQuoteKinds, + segmentInlineValueQuoteKinds.push( wordInlineValueQuoteClosed && wordInlineValueQuoteKind !== 'mixed' ? wordInlineValueQuoteKind : null - ]; + ); } word = ''; wordSource = '';