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) {
|
function getEmbedURLs(text) {
|
||||||
var matches = text.match(/<a [^<>]*?href="(.+?)".*?>/gi),
|
var matches = text ? text.match(/<a [^<>]*?href="(.+?)".*?>/gi) : [],
|
||||||
urls = [];
|
urls = [];
|
||||||
if (matches) {
|
if (matches) {
|
||||||
matches.forEach(function(match) {
|
matches.forEach(function(match) {
|
||||||
|
|
Loading…
Reference in a new issue