Skip to content

Commit e21ca0b

Browse files
committed
simplify regex
1 parent 63d1918 commit e21ca0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/github/file/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ async function promptPastReport(metadata: FileMetadata): Promise<void> {
248248
return;
249249
}
250250
const link = document.URL.replace(
251-
/(.*\/blob)\/(.*?)\/(.*)/,
252-
`$1/${commit}/$3`
251+
`blob/${metadata.branch}`,
252+
`blob/${commit}`
253253
);
254254
globals.prompt = createPrompt(
255255
<span>

0 commit comments

Comments
 (0)