mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Fix app url regex, branch names may contain dots
This commit is contained in:
parent
7d2cb232b3
commit
5c883cc054
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ const emailForward = value => helpers.withParams(
|
||||||
}
|
}
|
||||||
)(value)
|
)(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(
|
const includes = items => item => helpers.withParams(
|
||||||
{ type: 'includes', value: item },
|
{ type: 'includes', value: item },
|
||||||
|
|
Loading…
Add table
Reference in a new issue