From 0175c95164c1a2f7ca3a3ba707111e2c0007562f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 1 Jun 2025 20:27:06 +0900 Subject: [PATCH] fix(utils): empty response on absense of sep --- model/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/utils.go b/model/utils.go index 688a143..53749fe 100644 --- a/model/utils.go +++ b/model/utils.go @@ -12,7 +12,7 @@ func CutLast(txt, sep string) string { } a := strings.LastIndex(txt, sep) if a < 0 { - return "" + return strings.TrimSpace(txt) } a += len(sep) if a >= len(txt) {