Skip to content

Commit bbaf41c

Browse files
authored
Exclude pathname with dot in isProfile (#108)
1 parent 19c4a6a commit bbaf41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ collect.set('isBranches', [
517517

518518
export const isProfile = (url: URL | HTMLAnchorElement | Location = location): boolean => {
519519
const pathname = getCleanPathname(url);
520-
return pathname.length > 0 && !pathname.includes('/') && !reservedNames.includes(pathname);
520+
return pathname.length > 0 && !pathname.includes('/') && !pathname.includes('.') && !reservedNames.includes(pathname);
521521
};
522522

523523
collect.set('isProfile', [

0 commit comments

Comments
 (0)