diff --git a/integrations/github-files/src/github.ts b/integrations/github-files/src/github.ts index c0f81edef..e2cb71c49 100644 --- a/integrations/github-files/src/github.ts +++ b/integrations/github-files/src/github.ts @@ -7,8 +7,8 @@ export interface GithubProps { const splitGithubUrl = (url: string) => { const permalinkRegex = - /^https?:\/\/github\.com\/([\w-]+)\/([\w-]+)\/blob\/([a-f0-9]+)\/(.+?)#(.+)$/; - const wholeFileRegex = /^https?:\/\/github\.com\/([\w-]+)\/([\w-]+)\/blob\/([\w.-]+)\/(.+)$/; + /^https?:\/\/github\.com\/([\w-]+)\/([\w.-]+)\/blob\/([a-f0-9]+)\/(.+?)#(.+)$/; + const wholeFileRegex = /^https?:\/\/github\.com\/([\w-]+)\/([\w.-]+)\/blob\/([\w.-]+)\/(.+)$/; const multipleLineRegex = /^L\d+-L\d+$/; let orgName = '';