mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Improve app repo url regex, may contain tildes
This commit is contained in:
parent
d865de0628
commit
99ffd7ca72
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