Skip to content

Commit

Permalink
Fix isBlank false positives (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Apr 14, 2023
1 parent 8b05571 commit fb72705
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 @@ -366,7 +366,7 @@ export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimensi

export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('main > .flash-warn')?.textContent!.includes('archived'));

export const isBlank = (): boolean => exists('main .blankslate');
export const isBlank = (): boolean => exists('main .blankslate:not([hidden] .blankslate)');

export const isRepoTaxonomyIssueOrPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepo(url)?.path!);
addTests('isRepoTaxonomyIssueOrPRList', [
Expand Down

0 comments on commit fb72705

Please sign in to comment.