From 0a7e6337b204b0245b24486646b184d82c12a222 Mon Sep 17 00:00:00 2001 From: Jared Cordasco Date: Mon, 4 Jan 2010 17:01:29 -0500 Subject: [PATCH] Quoting regexp to parse properly. --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 2c38de4..d54cd56 100755 --- a/todo.sh +++ b/todo.sh @@ -259,7 +259,7 @@ cleaninput() input=`echo $input | tr -d '\r|\n'` # Check which action we are being used in as this affects what cleaning we do - if [[ $action =~ ^(append|app|prepend|prep|replace)$ ]]; then + if [[ $action =~ '^(append|app|prepend|prep|replace)$' ]]; then # These actions use sed and & as the matched string so escape it input=`echo $input | sed 's/\&/\\\&/g'` fi