From 99ffd7ca720360f29b01cbbcd90a580fa0cdb7e2 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 23 Nov 2021 23:24:20 +0100 Subject: [PATCH] Improve app repo url regex, may contain tildes --- app/src/helpers/validators/customValidators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/helpers/validators/customValidators.js b/app/src/helpers/validators/customValidators.js index 2ae65e58..c4565926 100644 --- a/app/src/helpers/validators/customValidators.js +++ b/app/src/helpers/validators/customValidators.js @@ -34,7 +34,7 @@ const emailForward = value => helpers.withParams( } )(value) -const appRepoUrl = helpers.regex('appRepoUrl', /^https:\/\/[a-zA-Z0-9-_.]+\/[a-zA-Z0-9-_./]+\/[a-zA-Z0-9-_.]+_ynh(\/?(-\/)?tree\/[a-zA-Z0-9-_.]+)?(\.git)?\/?$/) +const appRepoUrl = helpers.regex('appRepoUrl', /^https:\/\/[a-zA-Z0-9-_.]+\/[a-zA-Z0-9-_./~]+\/[a-zA-Z0-9-_.]+_ynh(\/?(-\/)?tree\/[a-zA-Z0-9-_.]+)?(\.git)?\/?$/) const includes = items => item => helpers.withParams( { type: 'includes', value: item },