regexp: Find makes it easy to unintentionally overwrite slices #30169
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
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
.The text was updated successfully, but these errors were encountered: