parent
6b2eed4c0c
commit
fc3ac039a5
@ -3316,7 +3316,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
return ['vine', embedUrlMatches[1]];
|
return ['vine', embedUrlMatches[1]];
|
||||||
}
|
}
|
||||||
else if (embedUrlMatches = text.match(soundcloudRegex)) {
|
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]];
|
return ['soundcloud', embedUrlMatches[0]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user