We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem the minimal examples seems don't work in win10。 as i run the examples and sent “ping” in cli there is nothing happen;
analyse
the problem is happen in CLIAdapter ;Actually two more characters were read;
line, err := r.ReadString('\n') fmt.Printf("len:%d\n", len(line)) fmt.Printf("real line: %q\n", line) lines <- line[:len(line)-1] <========cmd=========> example-bot > ping len:6 real line: "ping\r\n"
So it's never been a match,Also will never enter the pong method
regex, _ := regexp.Compile("^(?i)ping$") matches := regex.FindStringSubmatch("ping\r") len(matches) == 0
i can solve it by use lines <- line[:len(line)-2] in CLIAdapter.
lines <- line[:len(line)-2]
I don't know if other platforms or it will have an impact on other places
The text was updated successfully, but these errors were encountered:
No branches or pull requests
problem
the minimal examples seems don't work in win10。
as i run the examples and sent “ping” in cli there is nothing happen;
analyse
the problem is happen in CLIAdapter ;Actually two more characters were read;
So it's never been a match,Also will never enter the pong method
i can solve it by use
lines <- line[:len(line)-2]
in CLIAdapter.I don't know if other platforms or it will have an impact on other places
The text was updated successfully, but these errors were encountered: