fix(core): Preserve significant trailing spaces in gitignore patterns (#11536)

This commit is contained in:
Eric Rahm
2025-10-20 14:41:33 -07:00
committed by GitHub
parent 61a71c4fcd
commit d5a06d3cd2
2 changed files with 21 additions and 1 deletions

View File

@@ -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('!');