Skip to content

Commit 012c139

Browse files
danedavidfregante
andauthored
Add 3 file-finder-related features (#2825)
Co-authored-by: Federico Brigante <opensource@bfred.it>
1 parent 66a8764 commit 012c139

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ export const _isSingleFile = [
345345
'https://github.com/sindresorhus/refined-github/blob/fix-narrow-diff/distribution/content.css',
346346
'https://github.com/sindresorhus/refined-github/blob/master/edit.txt'
347347
];
348+
349+
export const isFileFinder = (): boolean => /^find\//.test(getRepoPath()!);
350+
export const _isFileFinder = [
351+
'https://github.com/sindresorhus/refined-github/find/master'
352+
];
353+
348354
export const isSingleGist = (): boolean => isGist() && /^\/(gist\/)?[^/]+\/[0-9a-f]{32}$/.test(location.pathname);
349355
export const _isSingleGist = [
350356
'https://gist.github.com/sindresorhus/0ea3c2845718a0a0f0beb579ff14f064'

0 commit comments

Comments
 (0)