readvar(){
	if [[ ${1} == \W ]]; then
		echo "${@}"
	elif [[ ${!1} && ${1} != [0-9]* ]]; then
		local var=${1}[@]

		echo ${!var}
	else
		echo "${@}"
	fi
}
readvar(){
	if [[ ${1} != *[a-zA-Z0-9_]* || ${1} == *[-.]* ]]; then
		echo "${@}"
	elif [[ ${!1} && ${1} != [0-9]* ]]; then
		local var=${1}[@]

		echo ${!var}
	else
		echo "${@}"
	fi
}
Revert "Simplify using regex statement"
Revert "Simplify using regex statement"

This reverts commit c304d5b240ba8ac4c74d800bfe509218a1905199.
