From 1dafb09e070e21f4876594d40baab3f168db9c4e Mon Sep 17 00:00:00 2001 From: Kayvan Sylvan Date: Tue, 4 Mar 2025 21:20:24 -0800 Subject: [PATCH] remove spurious newline --- plugins/tools/youtube/youtube.go | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/tools/youtube/youtube.go b/plugins/tools/youtube/youtube.go index 189909f1..f61fad26 100644 --- a/plugins/tools/youtube/youtube.go +++ b/plugins/tools/youtube/youtube.go @@ -60,7 +60,6 @@ func (o *YouTube) GetVideoOrPlaylistId(url string) (videoId string, playlistId s // Video ID pattern videoPattern := `(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:live\/|[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|(?:s(?:horts)\/)|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]*)` - videoRe := regexp.MustCompile(videoPattern) videoMatch := videoRe.FindStringSubmatch(url) if len(videoMatch) > 1 {