优化结构
This commit is contained in:
@@ -39,3 +39,10 @@ func advanceDeletePrefixCursor(current, next string, more bool) (string, error)
|
||||
}
|
||||
return next, nil
|
||||
}
|
||||
|
||||
func boundedPrefix(key, prefix string) string {
|
||||
if strings.HasSuffix(strings.ReplaceAll(prefix, "\\", "/"), "/") && !strings.HasSuffix(key, "/") {
|
||||
return key + "/"
|
||||
}
|
||||
return key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user