Browse Source

don't use return from split, which is an array, which should really have meant someone found this broken before now... (cf. ZenDesk no. 402)

pull/639/head
Joe Germuska 11 years ago
parent
commit
3ab755a1b8
  1. 2
      source/js/Core/Media/VMM.MediaType.js

2
source/js/Core/Media/VMM.MediaType.js

@ -86,7 +86,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
success = true;
} else if (d.match("maps.google") && !d.match("staticmap") && !d.match('streetview')) {
media.type = "google-map";
media.id = d.split(/src=['|"][^'|"]*?['|"]/gi);
media.id = d;
success = true;
} else if (d.match(/www.google.\w+\/maps/)) {
media.type = "google-map";

Loading…
Cancel
Save