From 4929bbeb0c6c7a6c267f5830b6cbda8f6077e567 Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Sun, 4 Oct 2015 23:52:23 +0200
Subject: [PATCH] [Soundcloud] better regex

---
 lib/sites/parser.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/sites/parser.pm b/lib/sites/parser.pm
index 4fa9138..e29343a 100644
--- a/lib/sites/parser.pm
+++ b/lib/sites/parser.pm
@@ -30,7 +30,7 @@ sub parse {
 		$content{'site'} = 'youtube';
         $content{'url'} = 'https://www.youtube.com/watch?v='.$1;
 	}
-	elsif ($msg =~ m#(^|[^!])https?://soundcloud.com/([a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+)#) {
+	elsif ($msg =~ m#(^|[^!])https?://soundcloud.com/([a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+)(?:\?.+)?#) {
 		my $url = 'https://www.soundcloud.com/'.$2;
 		eval { %content = soundcloud::get($url) };
 		$content{'site'} = 'soundcloud';
-- 
GitLab