mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Changing name validation regex to allow dashes
Great for readable naming conventions.
This commit is contained in:
parent
33ed7e7012
commit
23cc58ce3a
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