Skip to content

Commit fe13a45

Browse files
authored
Update regex github.ts to also capture dots for repo names
1 parent cb7ab97 commit fe13a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/github-files/src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export interface GithubProps {
77

88
const splitGithubUrl = (url: string) => {
99
const permalinkRegex =
10-
/^https?:\/\/github\.com\/([\w-]+)\/([\w-]+)\/blob\/([a-f0-9]+)\/(.+?)#(.+)$/;
11-
const wholeFileRegex = /^https?:\/\/github\.com\/([\w-]+)\/([\w-]+)\/blob\/([\w.-]+)\/(.+)$/;
10+
/^https?:\/\/github\.com\/([\w-]+)\/([\w.-]+)\/blob\/([a-f0-9]+)\/(.+?)#(.+)$/;
11+
const wholeFileRegex = /^https?:\/\/github\.com\/([\w-]+)\/([\w.-]+)\/blob\/([\w.-]+)\/(.+)$/;
1212
const multipleLineRegex = /^L\d+-L\d+$/;
1313

1414
let orgName = '';

0 commit comments

Comments
 (0)