You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D'oh. The regexp pattern has raw strings as inputs, rather than double quotes around the strings. Changing them to double quotes makes the panic as expected: https://play.golang.org/p/qJMgs0xFxU
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
This issue was reported earlier that turns out might be a bug, or at least, unexpected behavior from
regexp.MustCompile
:https://play.golang.org/p/5X4yiZrUza
This might be related to #11185, but this test case is set up slightly differently.
What did you expect to see?
A panic, I guess? My encoding-fu is a bit weak but I think
\x03\x65\xd0
is invalid UTF-8.What did you see instead?
The text was updated successfully, but these errors were encountered: