mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
bugfixes and improvements
This commit is contained in:
@@ -21,7 +21,8 @@ function normalize(o) {
|
||||
const link = o.link != null ? decodeURIComponent(o.link) : config.url;
|
||||
|
||||
const urlReg = new RegExp(/url\((.*?)\)/gim);
|
||||
const image = o.image != null ? urlReg.exec(o.image)[1] : null;
|
||||
const imageMatch = o.image != null ? urlReg.exec(o.image) : null;
|
||||
const image = imageMatch != null ? imageMatch[1] : null;
|
||||
return {
|
||||
id,
|
||||
link,
|
||||
|
||||
Reference in New Issue
Block a user