mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-06-29 08:12:47 +02:00
12 lines
168 B
Go
12 lines
168 B
Go
package command
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func escapeKey(key string) string {
|
|
if strings.Contains(key, ":") {
|
|
return strings.ReplaceAll(key, ":", "")
|
|
}
|
|
return key
|
|
}
|