Preserve tabs on paste (#12735)

This commit is contained in:
Adib234
2025-11-10 07:37:43 -08:00
committed by GitHub
parent 4ab94dec5e
commit 331dbd5638
2 changed files with 10 additions and 3 deletions

View File

@@ -9,9 +9,15 @@ import type {
ToolCallConfirmationDetails,
ToolEditConfirmationDetails,
} from '@google/gemini-cli-core';
import { escapeAnsiCtrlCodes } from './textUtils.js';
import { escapeAnsiCtrlCodes, stripUnsafeCharacters } from './textUtils.js';
describe('textUtils', () => {
describe('stripUnsafeCharacters', () => {
it('should not strip tab characters', () => {
const input = 'hello world';
expect(stripUnsafeCharacters(input)).toBe('hello world');
});
});
describe('escapeAnsiCtrlCodes', () => {
describe('escapeAnsiCtrlCodes string case study', () => {
it('should replace ANSI escape codes with a visible representation', () => {