From 9ed588c7614ab2f8dc56ff921145662ef92624e1 Mon Sep 17 00:00:00 2001 From: Aishanee Shah Date: Wed, 18 Feb 2026 17:51:09 +0000 Subject: [PATCH] fix(test): resolve type error in shell-xml-safety.test.ts --- packages/core/src/tools/shell-xml-safety.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/tools/shell-xml-safety.test.ts b/packages/core/src/tools/shell-xml-safety.test.ts index 533a4aad6d..7552bd49d1 100644 --- a/packages/core/src/tools/shell-xml-safety.test.ts +++ b/packages/core/src/tools/shell-xml-safety.test.ts @@ -91,7 +91,7 @@ describe('ShellTool XML Safety', () => { expect(result.llmContent).toContain(''); expect(result.llmContent).toContain('0'); - const matches = result.llmContent.match(/]]>/g); + const matches = (result.llmContent as string).match(/]]>/g); // Should have at least two ]]>: one from the sanitization and one from the wrapCData end. expect(matches?.length).toBeGreaterThanOrEqual(2); });