Skip to content

Commit b24d813

Browse files
s
1 parent c3c24eb commit b24d813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/lib/gitattributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function parseGitAttributes(content: string): GitAttributes {
6464
export function resolveLanguageFromGitAttributes(filePath: string, gitAttributes: GitAttributes): string | undefined {
6565
let language: string | undefined;
6666
for (const rule of gitAttributes.rules) {
67-
if (micromatch.isMatch(filePath, rule.pattern, { matchBase: true }) && rule.attrs['linguist-language']) {
67+
if (micromatch.isMatch(filePath, rule.pattern) && rule.attrs['linguist-language']) {
6868
language = rule.attrs['linguist-language'];
6969
}
7070
}

0 commit comments

Comments
 (0)