Skip to content

Commit 98e190c

Browse files
committed
Fix test case
1 parent 92ebb51 commit 98e190c

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
@@ -13,7 +13,7 @@ addTests('__urls_that_dont_match__', [
1313
'https://github.com/orgs/community/discussions/new/choose',
1414
]);
1515

16-
export const is404 = (): boolean => /^(Page|File) not found( · GitHub)?/.test(document.title); // #98; When logged out, it starts with "File"
16+
export const is404 = (): boolean => /^(Page|File) not found(?! · Issue #\d+)( · GitHub)?/.test(document.title); // #98; When logged out, it starts with "File"
1717

1818
export const is500 = (): boolean => document.title === 'Server Error · GitHub' || document.title === 'Unicorn! · GitHub' || document.title === '504 Gateway Time-out';
1919

0 commit comments

Comments
 (0)