Skip to content

Commit

Permalink
Meta: Fix isMilestone's test url (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
134130 committed Aug 19, 2023
1 parent a48ecc7 commit 61be460
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 @@ -149,7 +149,7 @@ addTests('isLabelList', [

export const isMilestone = (url: URL | HTMLAnchorElement | Location = location): boolean => /^milestone\/\d+/.test(getRepo(url)?.path!);
addTests('isMilestone', [
'https://github.com/sindresorhus/refined-github/milestone/12',
'https://github.com/kubernetes/kubernetes/milestone/56',
]);

export const isMilestoneList = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'milestones';
Expand Down

0 comments on commit 61be460

Please sign in to comment.