Skip to content

Commit

Permalink
NO-ISSUE: Importing github raw URL is broken due to GitHub URL change (
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmotta authored Sep 24, 2024
1 parent 683be53 commit 6fc4727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export function useImportableUrl(urlString?: string, allowedUrlTypes?: UrlType[]

if (url.host === "raw.githubusercontent.com") {
const gitHubRawFileMatch = matchPath<{ org: string; repo: string; tree: string; path: string }>(url.pathname, {
path: "/:org/:repo/:tree/:path*",
path: "/:org/:repo/refs/heads/:tree/:path*",
exact: true,
strict: true,
sensitive: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function useImportableUrl(args: {
}

const gitHubRawFileMatch = matchPath<{ org: string; repo: string; tree: string; path: string }>(url.pathname, {
path: "/:org/:repo/:tree/:path*",
path: "/:org/:repo/refs/heads/:tree/:path*",
exact: true,
strict: true,
sensitive: false,
Expand Down

0 comments on commit 6fc4727

Please sign in to comment.