From 5c883cc05460451b705cfda81a0f1e0f8cf27b18 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 7 Oct 2021 11:27:09 +0200 Subject: [PATCH] Fix app url regex, branch names may contain dots --- 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 94c4aa4c..2ae65e58 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 },