mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
Merge pull request #527 from johanfagerstroem/master
Changing name validation regex to allow dashes
This commit is contained in:
commit
548492832d
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ if [ -z "${NAME}" ]; then
|
||||||
read -r NAME
|
read -r NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${NAME}" =~ [^a-zA-Z0-9] ]]; then
|
if [[ "${NAME}" =~ [^a-zA-Z0-9\-] ]]; then
|
||||||
echo "Name can only contain alphanumeric characters."
|
echo "Name can only contain alphanumeric characters and dashes (-)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue