From 3ab755a1b872f3e7ef5d6846f1a706e032f1b39e Mon Sep 17 00:00:00 2001 From: Joe Germuska Date: Mon, 23 Jun 2014 15:36:17 -0500 Subject: [PATCH] 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) --- source/js/Core/Media/VMM.MediaType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/Core/Media/VMM.MediaType.js b/source/js/Core/Media/VMM.MediaType.js index 071aa33..fee7c96 100644 --- a/source/js/Core/Media/VMM.MediaType.js +++ b/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";