Fixed soundcloud regex

Closes #574
This commit is contained in:
Igor Zhukov 2014-11-27 17:18:50 +00:00
parent 6b2eed4c0c
commit fc3ac039a5

View File

@ -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]];
}
}