mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 04:54:25 -07:00
Properly parse at-commands with narrow non-breaking spaces (#18677)
This commit is contained in:
committed by
GitHub
parent
cc2798018b
commit
eb94284256
@@ -134,6 +134,14 @@ describe('parseInputForHighlighting', () => {
|
||||
{ text: '@/my\\ path/file.txt', type: 'file' },
|
||||
]);
|
||||
});
|
||||
|
||||
it('should highlight a file path with narrow non-breaking spaces (NNBSP)', () => {
|
||||
const text = 'cat @/my\u202Fpath/file.txt';
|
||||
expect(parseInputForHighlighting(text, 0)).toEqual([
|
||||
{ text: 'cat ', type: 'default' },
|
||||
{ text: '@/my\u202Fpath/file.txt', type: 'file' },
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('parseInputForHighlighting with Transformations', () => {
|
||||
|
||||
Reference in New Issue
Block a user