mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
WebClient: add test cases for new backend code
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -93,3 +93,7 @@ func getSliceFromDelimitedValues(values, delimiter string) []string {
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func hasPrefixAndSuffix(key, prefix, suffix string) bool {
|
||||
return strings.HasPrefix(key, prefix) && strings.HasSuffix(key, suffix)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user