From bcd5758b864c1c76c0abcb78d04dfc143f8c6cf5 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 7 Mar 2018 16:53:54 +0530 Subject: [PATCH] no next no match --- static/js/textPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/textPanel.js b/static/js/textPanel.js index b14ae6134..65f1f33ae 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -101,7 +101,7 @@ pandora.ui.textPanel = function(text, $toolbar) { } function getEmbedURLs(text) { - var matches = text.match(/]*?href="(.+?)".*?>/gi), + var matches = text ? text.match(/]*?href="(.+?)".*?>/gi) : [], urls = []; if (matches) { matches.forEach(function(match) {