We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352d84b commit 762af81Copy full SHA for 762af81
parser.go
@@ -249,7 +249,7 @@ func MustParseMessage(line string) *Message {
249
// of invalid messages.
250
func ParseMessage(line string) (*Message, error) {
251
// Trim the line and make sure we have data
252
- line = strings.TrimSpace(line)
+ line = strings.TrimRight(line, "\r\n")
253
if len(line) == 0 {
254
return nil, ErrZeroLengthMessage
255
}
0 commit comments