forked from 0x2620/pandora
no next no match
This commit is contained in:
parent
9b8b6a1744
commit
bcd5758b86
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ pandora.ui.textPanel = function(text, $toolbar) {
|
|||
}
|
||||
|
||||
function getEmbedURLs(text) {
|
||||
var matches = text.match(/<a [^<>]*?href="(.+?)".*?>/gi),
|
||||
var matches = text ? text.match(/<a [^<>]*?href="(.+?)".*?>/gi) : [],
|
||||
urls = [];
|
||||
if (matches) {
|
||||
matches.forEach(function(match) {
|
||||
|
|
Loading…
Reference in a new issue