Miscellaeous fixes

This commit is contained in:
Orazio 2019-07-13 10:45:44 +02:00
parent 52bf326d8a
commit 241e06f970
2 changed files with 4 additions and 3 deletions

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