mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-03 09:30:42 +02:00
Set up CI with ESLint linter and Mocha test runner (#661)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user