fix: additional high vulnerabilities (minimatch, cross-spawn) (#20221)

This commit is contained in:
Adam Weidman
2026-02-24 16:47:37 -05:00
committed by GitHub
parent 5c23f7f6e0
commit 16d3883642
6 changed files with 602 additions and 489 deletions

View File

@@ -48,12 +48,12 @@ describe('textUtils', () => {
it('should handle unicode characters that crash string-width', () => {
// U+0602 caused string-width to crash (see #16418)
const char = '؂';
expect(getCachedStringWidth(char)).toBe(1);
expect(getCachedStringWidth(char)).toBe(0);
});
it('should handle unicode characters that crash string-width with ANSI codes', () => {
const charWithAnsi = '\u001b[31m' + '؂' + '\u001b[0m';
expect(getCachedStringWidth(charWithAnsi)).toBe(1);
expect(getCachedStringWidth(charWithAnsi)).toBe(0);
});
});