fix: adress pr comments

This commit is contained in:
Shirone
2026-01-16 23:41:23 +01:00
parent b263cc615e
commit 50ed405c4a
2 changed files with 10 additions and 10 deletions

View File

@@ -702,10 +702,11 @@ describe('xml-extractor.ts', () => {
</item>
<item>second</item>
</items>`;
// Note: multiline content in single element may not be captured due to . not matching newlines
// Multiline content is now captured with [\s\S]*? pattern
const result = extractXmlElements(xml, 'item');
expect(result).toHaveLength(1); // Only matches single-line content
expect(result[0]).toBe('second');
expect(result).toHaveLength(2);
expect(result[0]).toBe('first');
expect(result[1]).toBe('second');
});
it('should handle consecutive elements without whitespace', () => {