remove spurious newline

This commit is contained in:
Kayvan Sylvan
2025-03-04 21:20:24 -08:00
parent e8caf9fc10
commit 1dafb09e07

View File

@@ -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 {