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 b842fc0 commit 9cde8e2Copy full SHA for 9cde8e2
src/content/github/common/utils.ts
@@ -1,6 +1,12 @@
1
// Note that we're guaranteed to be on a github page due to manifest.json,
2
// so these checks don't need to include that.
3
+
4
+// This one matches PR files pages. Something like:
5
+// /codecov/gazebo/pull/2435/files
6
const prUrlRegex = /\/[^\/]+\/[^\/]+\/pull\/\d+\/files.*/
7
8
+// And this one matches file view pages - which look like:
9
+// /codecov/gazebo/blob/main/src/App.jsx
10
const fileUrlRegex = /\/[^\/]+\/[^\/]+\/blob\/[^\/]+\/.*/
11
12
export function isFileUrl(url: string): boolean {
0 commit comments