mirror of
https://github.com/fumiama/deepinfra.git
synced 2026-06-12 14:06:35 +08:00
feat: add custom
This commit is contained in:
@@ -7,6 +7,9 @@ const (
|
||||
)
|
||||
|
||||
func CutLast(txt, sep string) string {
|
||||
if sep == "" { // no need to cut
|
||||
return txt
|
||||
}
|
||||
a := strings.LastIndex(txt, sep)
|
||||
if a < 0 {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user