mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 16:41:11 -07:00
fix(core): Preserve significant trailing spaces in gitignore patterns (#11536)
This commit is contained in:
@@ -42,7 +42,7 @@ export class GitIgnoreParser implements GitIgnoreFilter {
|
||||
|
||||
return content
|
||||
.split('\n')
|
||||
.map((p) => p.trim())
|
||||
.map((p) => p.trimStart())
|
||||
.filter((p) => p !== '' && !p.startsWith('#'))
|
||||
.map((p) => {
|
||||
const isNegative = p.startsWith('!');
|
||||
|
||||
Reference in New Issue
Block a user