From 02a2792df0cffca1c05c3b30f39f1789550a8776 Mon Sep 17 00:00:00 2001 From: Kevin Altman Date: Tue, 21 Oct 2014 12:58:10 -0400 Subject: [PATCH] fix whitespace regular expression --- plugins/wd/wd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == *:* ]]