Fix app url regex, branch names may contain dots

This commit is contained in:
Alexandre Aubin 2021-10-07 11:27:09 +02:00
parent 7d2cb232b3
commit 5c883cc054

View file

@ -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 },