mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-09-05 23:56:50 +08:00
Address code review feedback: add validation and improve error handling
Co-authored-by: krau <71133316+krau@users.noreply.github.com>
This commit is contained in:
co-authored by
krau
parent
943ad190e6
commit
6fbde66415
@@ -65,6 +65,11 @@ func TestFilenameFromURL(t *testing.T) {
|
||||
url: "https://cdn.example.com/a/b/c/d/e/video.mkv",
|
||||
expected: "video.mkv",
|
||||
},
|
||||
{
|
||||
name: "malformed url with invalid characters",
|
||||
url: "://invalid url",
|
||||
expected: "",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user