We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c8ddee commit 6068b15Copy full SHA for 6068b15
1 file changed
src/export/helper.ts
@@ -191,7 +191,7 @@ export function random(length: number = 16) {
191
192
export function getRepository(raw_url: string) {
193
const match = raw_url.match(
194
- /raw\.githubusercontent\.com\/([^\/]+)\/([^\/]+)\/([^\/]+)\/(.*)/i
+ /raw\.githubusercontent\.com\/([^\/]+)\/([^\/]+)\/(?:refs\/heads\/)?([^\/]+)\/(.*)/i
195
)
196
197
if (match?.length === 5) {
0 commit comments