|
@@ -718,7 +718,7 @@ func (c *ExecutionContext) createCmd(message string) {
|
718
|
718
|
func (c *ExecutionContext) openCmd(input string) {
|
719
|
719
|
// @open <in1;in2;in3;etc>=#<room>,<out1;out2;out3;etc>
|
720
|
720
|
|
721
|
|
- r, _ := regexp.Compile(`^@open\pZ+([^=]*[^=\pZ]+)\pZ*=#([0-9]+)(?:\pZ*,\pZ*([^,]*[^,\pZ]+)\pZ*)?`)
|
|
721
|
+ r, _ := regexp.Compile(`^@open\pZ+([^=]*[^=\pZ]{1})\pZ*=#([0-9]+)(?:\pZ*,\pZ*([^,]*[^,\pZ]{1})\pZ*)?`)
|
722
|
722
|
params := r.FindStringSubmatch(input)
|
723
|
723
|
|
724
|
724
|
if params == nil {
|
|
@@ -763,7 +763,7 @@ func (c *ExecutionContext) digCmd(input string) {
|
763
|
763
|
// @dig <Room name>=<in1;in2;in3;etc>,<out1;out2;out3;etc>
|
764
|
764
|
//@dig foo bar = <F>oo;foo;f,<B>ack;back;b
|
765
|
765
|
|
766
|
|
- r, _ := regexp.Compile(`^@dig\pZ+([^=]*[^=\pZ]+)(\pZ*=\pZ*(?:([^,]*[^,\pZ]+)\pZ*)?(?:\pZ*,\pZ*([^,]*[^,\pZ]+)\pZ*)?)?`)
|
|
766
|
+ r, _ := regexp.Compile(`^@dig\pZ+([^=]*[^=\pZ]{1})(?:\pZ*=\pZ*(?:([^,]*[^,\pZ]{1})\pZ*)?(?:\pZ*,\pZ*([^,]*[^,\pZ]{1})\pZ*)?)?`)
|
767
|
767
|
params := r.FindStringSubmatch(input)
|
768
|
768
|
if params == nil {
|
769
|
769
|
return
|