mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-03 00:49:13 +08:00
13 lines
168 B
Go
13 lines
168 B
Go
|
package command
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func escapeKey(key string) string {
|
||
|
if strings.Contains(key, ":") {
|
||
|
return strings.ReplaceAll(key, ":", "")
|
||
|
}
|
||
|
return key
|
||
|
}
|