fix whitespace regular expression

This commit is contained in:
Kevin Altman 2014-10-21 12:58:10 -04:00
commit 02a2792df0

View file

@ -71,7 +71,7 @@ wd_add()
if [[ $point =~ "^[\.]+$" ]]
then
wd_print_msg $RED "Warp point cannot be just dots"
elif [[ $point =~ "(\s|\ )+" ]]
elif [[ $point =~ [[:space:]]+ ]]
then
wd_print_msg $RED "Warp point should not contain whitespace"
elif [[ $point == *:* ]]