mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
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:
parent
e5196da659
commit
b795b9b887
2
init/msm
2
init/msm
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user