~kris/9p

disco

9cb32e016388fde789f6aec4876c744003039f2e — Sean Hinchee 7 years ago 6253e6b
fix a whoopsie (thanks vik)
1 files changed, 5 insertions(+), 1 deletions(-)

M commands.go
M commands.go => commands.go +5 -1
@@ 7,8 7,12 @@ import (
	"strings"
)

//ParseForCommands parses input for Commands, returns message if no command specified, else return is empty
// ParseForCommands parses input for Commands, returns message if no command specified, else return is empty
func ParseForCommands(line string) string {
	if len(line) < 2 {
		return line
	}

	switch line[:2] {
	case "s/":
		r := regexp.MustCompile(`s/([^/]+)/([^/]*)/$`)