Fixed regular expression

This commit is contained in:
Orazio 2019-07-13 19:59:28 +02:00
parent 1b54558769
commit 8a6d32ced5

View file

@ -147,7 +147,7 @@ if [[ ${NAME::1} == "." ]] || [[ ${NAME::1} == "-" ]]; then
exit 1
fi
if [[ "${NAME}" =~ [^a-zA-Z0-9\.\\-\@\_] ]]; then
if [[ "${NAME}" =~ [^a-zA-Z0-9.@_-] ]]; then
echo "Name can only contain alphanumeric characters and these characters (.-@_)."
exit 1
fi