mirror of
https://github.com/containers/podman.git
synced 2025-09-29 01:35:06 +08:00
Bump github.com/containers/storage from 1.21.2 to 1.23.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.21.2 to 1.23.0. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.21.2...v1.23.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
![27856297+dependabot-preview[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Daniel J Walsh

parent
87e8f91c00
commit
fec8a29e91
13
vendor/github.com/containers/storage/pkg/stringutils/stringutils.go
generated
vendored
13
vendor/github.com/containers/storage/pkg/stringutils/stringutils.go
generated
vendored
@ -56,13 +56,24 @@ func Truncate(s string, maxlen int) string {
|
||||
// Comparison is case insensitive
|
||||
func InSlice(slice []string, s string) bool {
|
||||
for _, ss := range slice {
|
||||
if strings.ToLower(s) == strings.ToLower(ss) {
|
||||
if strings.EqualFold(s, ss) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// RemoveFromSlice removes a string from a slice. The string can be present
|
||||
// multiple times. The entire slice is iterated.
|
||||
func RemoveFromSlice(slice []string, s string) (ret []string) {
|
||||
for _, ss := range slice {
|
||||
if !strings.EqualFold(s, ss) {
|
||||
ret = append(ret, ss)
|
||||
}
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
func quote(word string, buf *bytes.Buffer) {
|
||||
// Bail out early for "simple" strings
|
||||
if word != "" && !strings.ContainsAny(word, "\\'\"`${[|&;<>()~*?! \t\n") {
|
||||
|
Reference in New Issue
Block a user