diff --git a/plugins/wd/wd.sh b/plugins/wd/wd.sh index dfb9ad89a..9f1398db5 100755 --- a/plugins/wd/wd.sh +++ b/plugins/wd/wd.sh @@ -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 == *:* ]]