Fixed bug preventing say command from accepting only 1 argument.

Had to accept two or more arguments due to a regex mistake.
This commit is contained in:
Marcus Whybrow 2012-07-17 23:34:09 +01:00
parent e5196da659
commit b795b9b887

View File

@ -2435,7 +2435,7 @@ register_command() {
# at this stage be accepted as any non-zero string
if [[ "$word" =~ ^\<.*\>$ ]]; then
if [[ "$word" == "<strings>" ]]; then
regex="${regex}([^ ]+|\\\"[^\\\"]*\\\")( [^ ]+|\\\"[^\\\"]*\\\")+ "
regex="${regex}([^ ]+|\\\"[^\\\"]*\\\")( [^ ]+|\\\"[^\\\"]*\\\")* "
else
regex="${regex}([^ ]+|\\\"[^\\\"]*\\\") "
fi