We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ebb51 commit 98e190cCopy full SHA for 98e190c
index.ts
@@ -13,7 +13,7 @@ addTests('__urls_that_dont_match__', [
13
'https://github.com/orgs/community/discussions/new/choose',
14
]);
15
16
-export const is404 = (): boolean => /^(Page|File) not found( · GitHub)?/.test(document.title); // #98; When logged out, it starts with "File"
+export const is404 = (): boolean => /^(Page|File) not found(?! · Issue #\d+)( · GitHub)?/.test(document.title); // #98; When logged out, it starts with "File"
17
18
export const is500 = (): boolean => document.title === 'Server Error · GitHub' || document.title === 'Unicorn! · GitHub' || document.title === '504 Gateway Time-out';
19
0 commit comments