Skip to content

Commit

Permalink
Exclude pathname with dot in isProfile (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Dec 3, 2021
1 parent 19c4a6a commit bbaf41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ collect.set('isBranches', [

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

collect.set('isProfile', [
Expand Down

0 comments on commit bbaf41c

Please sign in to comment.