From fc3ac039a597d3e83054cfa72616838f32730297 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 27 Nov 2014 17:18:50 +0000 Subject: [PATCH] Fixed soundcloud regex Closes #574 --- app/js/services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 20dea9a5..f74d0502 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -3316,7 +3316,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) return ['vine', embedUrlMatches[1]]; } else if (embedUrlMatches = text.match(soundcloudRegex)) { - if (embedUrlMatches[1] != 'explore') { + var badFolders = 'explore,upload,pages,terms-of-use,mobile,jobs,imprint'.split(','); + if (badFolders.indexOf(embedUrlMatches[1]) != -1) { return ['soundcloud', embedUrlMatches[0]]; } }