diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dab5781..3fc0bdd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,13 +1,10 @@ - + - - - - - + + @@ -40,11 +37,31 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + + + @@ -60,31 +77,51 @@ - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + @@ -147,17 +184,17 @@ @@ -251,6 +288,52 @@ \ No newline at end of file diff --git a/plugins/fix_images.js b/plugins/fix_images.js index 646821c..08910cb 100644 --- a/plugins/fix_images.js +++ b/plugins/fix_images.js @@ -1,7 +1,8 @@ module.exports = function (item, itemOptions, source) { - if ((typeof itemOptions.descriptions !== 'undefined') && (itemOptions.description !== null)) { + if ((typeof itemOptions.description !== 'undefined') && (itemOptions.description !== null)) { var match = itemOptions.description.replace(/\ssrc=/gi, ' src="assets/fm.png" data-src='); itemOptions.description = match; + console.log(match); } return itemOptions; }; diff --git a/plugins/fix_scripts.js b/plugins/fix_scripts.js index d97a00d..6847720 100644 --- a/plugins/fix_scripts.js +++ b/plugins/fix_scripts.js @@ -1,5 +1,5 @@ module.exports = function (item, itemOptions, source) { - if ((typeof itemOptions.descriptions !== 'undefined') && (itemOptions.description !== null)) { + if ((typeof itemOptions.description !== 'undefined') && (itemOptions.description !== null)) { var match = itemOptions.description.replace( /)<[^<]*)*<\/script>/gi,