mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-20 02:51:55 -07:00
Preserve tabs on paste (#12735)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user