Browse Source

Fixed soundcloud regex

Closes #574
master
Igor Zhukov 10 years ago
parent
commit
fc3ac039a5
  1. 3
      app/js/services.js

3
app/js/services.js

@ -3316,7 +3316,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -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]];
}
}

Loading…
Cancel
Save