commit ac8b5b8
Pranjal Kole
·
2021-11-19 09:11:02 +0000 UTC
parent 06fbb04
Fix crash when lone slash is entered See ticket #79 for more information
1 files changed,
+1,
-1
+1,
-1
1@@ -554,7 +554,7 @@ func parseCommand(s string) (command, args string, isCommand bool) {
2 if s[0] != '/' {
3 return "", s, false
4 }
5- if s[1] == '/' {
6+ if len(s) > 1 && s[1] == '/' {
7 // Input starts with two slashes.
8 return "", s[1:], false
9 }