diff --git a/src/routes/repository-private.ts b/src/routes/repository-private.ts index d174066..b4b0f35 100644 --- a/src/routes/repository-private.ts +++ b/src/routes/repository-private.ts @@ -197,7 +197,7 @@ function validateNewRepo(repoUpdate) { if (!Array.isArray(repoUpdate.terms)) { throw new AnonymousError("invalid_terms_format", repoUpdate.terms); } - if (!/^[a-f0-9]+$/.test(repoUpdate.source.commit)) { + if (!/^[a-fA-F0-9]+$/.test(repoUpdate.source.commit)) { throw new AnonymousError("invalid_commit_format", repoUpdate.source.commit); } }