Commit e9a7a9077f
Unsigned
Layout: unified · split
docs/ext/extensionRepos/parsers.ts +2 −2
| @@ -676,7 +676,7 @@ function parseEchoRepo( | ||
| 676 | 676 | ownerUrl: string |
| 677 | 677 | } | undefined { |
| 678 | 678 | const githubMatch = updateUrl.match( |
| 679 | /^https:\/\/api\.github\.com\/repos\/([^/]+)\/([^/]+)\/releases$/ | |
| 679 | /^https:\/\/api\.github\.com\/repos\/([^/]+)\/([^/]+)\/releases(?:\/|$)/ | |
| 680 | 680 | ) |
| 681 | 681 | if (githubMatch) { |
| 682 | 682 | const [, owner, repo] = githubMatch |
| @@ -689,7 +689,7 @@ function parseEchoRepo( | ||
| 689 | 689 | } |
| 690 | 690 | } |
| 691 | 691 | const gitlabMatch = updateUrl.match( |
| 692 | /^https:\/\/(gitlab\.com)\/api\/v4\/projects\/([^/]+)\/releases\b/ | |
| 692 | /^https:\/\/(gitlab\.com)\/api\/v4\/projects\/([^/]+)\/releases(?:\/|$)/ | |
| 693 | 693 | ) |
| 694 | 694 | if (gitlabMatch) { |
| 695 | 695 | const [, host, encodedPath] = gitlabMatch |