Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upregexp: Find makes it easy to unintentionally overwrite slices #30169
Comments
This comment has been minimized.
This comment has been minimized.
gopherbot
commented
Feb 11, 2019
Change https://golang.org/cl/161877 mentions this issue: |
bradfitz
added
the
NeedsDecision
label
Feb 11, 2019
bradfitz
added this to the Go1.13 milestone
Feb 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
campoy commentedFeb 11, 2019
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created a little program using the slices returned by
FindAll
by appending some extra characters before printing them.What did you expect to see?
I expected the output to be:
What did you see instead?
The output was instead:
This is similar to the fixes already done in
bytes.Fields
.