diff --git a/src/helpers/parse-gitattributes.ts b/src/helpers/parse-gitattributes.ts index 3c914a4..ece21e4 100644 --- a/src/helpers/parse-gitattributes.ts +++ b/src/helpers/parse-gitattributes.ts @@ -22,7 +22,7 @@ export default function parseAttributes(content: string, folderRoot: string = '. const output: ParsedGitattributes = []; for (const rawLine of content.split('\n')) { - const line = rawLine.replace(/#.*$/, '').trim(); + const line = rawLine.replace(/#.*/, '').trim(); if (!line) continue; const parts = line.split(/\s+/g);