mirror of
https://github.com/docker/cli.git
synced 2026-11-06 13:10:41 -04:00
Inline the sub-slice lookup into stringSliceReplaceAt and use slices.Equal to compare candidate ranges. When a specific index is required, check that position directly instead of searching the full slice. This also fixes overlapping matches and uses slices.Concat to construct the replacement result. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>