Skip to content

Commit 6068b15

Browse files
fix url github extraction
1 parent 4c8ddee commit 6068b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/export/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function random(length: number = 16) {
191191

192192
export function getRepository(raw_url: string) {
193193
const match = raw_url.match(
194-
/raw\.githubusercontent\.com\/([^\/]+)\/([^\/]+)\/([^\/]+)\/(.*)/i
194+
/raw\.githubusercontent\.com\/([^\/]+)\/([^\/]+)\/(?:refs\/heads\/)?([^\/]+)\/(.*)/i
195195
)
196196

197197
if (match?.length === 5) {

0 commit comments

Comments
 (0)