Skip to content
Snippets Groups Projects

Fix regexp matching when using API with group/project syntax

Closed Stan Hu requested to merge fix-archive-api-for-project-names into master
+ 22
1
Compare changes
  • Side-by-side
  • Inline
Files
+ 3
1
@@ -50,7 +50,9 @@ const projectPattern = `^/[^/]+/[^/]+/`
const gitProjectPattern = `^/[^/]+/[^/]+\.git/`
const apiPattern = `^/api/`
const projectsAPIPattern = `^/api/v3/projects/[^/]+/`
// Handle project IDs in two forms: integer ID and group/project_name
const projectsAPIPattern = `^/api/v3/projects/([^/]+|[^/]+/[^/]+)/`
const ciAPIPattern = `^/ci/api/`
Loading