gaboshlib/g_num_valid_number.sh aktualisiert

This commit is contained in:
olli 2023-11-07 09:05:36 +01:00
parent b554cf6c48
commit 001c61d17d

View File

@ -5,6 +5,7 @@ function g_num_valid_number {
if ! [[ ${f_num} =~ ^(-)?(\.)?[0-9]+(\.[0-9]+)?$ ]] if ! [[ ${f_num} =~ ^(-)?(\.)?[0-9]+(\.[0-9]+)?$ ]]
then then
g_echo "\"${f_num}\": Not a valid number" g_echo "\"${f_num}\": Not a valid number"
g_traceback
return 1 return 1
fi fi
done done