Set up CI with ESLint linter and Mocha test runner (#661)

This commit is contained in:
Thomas Durieux
2026-04-15 04:34:03 +02:00
committed by GitHub
parent 812f8b6314
commit f3641c8ce3
14 changed files with 1991 additions and 38 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ router.get("/:repoId/", async (req: express.Request, res: express.Response) => {
});
function validateNewRepo(repoUpdate: any): void {
const validCharacters = /^[0-9a-zA-Z\-\_]+$/;
const validCharacters = /^[0-9a-zA-Z\-_]+$/;
if (
!repoUpdate.repoId.match(validCharacters) ||
repoUpdate.repoId.length < 3