From 615ed5a693afd9ab78e7d84909fb18d8bdf4109b Mon Sep 17 00:00:00 2001 From: witzig Date: Fri, 29 Sep 2017 12:22:37 +0200 Subject: [PATCH] Support multiple usage of RSS merge tags, closes #329 --- services/feedcheck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/feedcheck.js b/services/feedcheck.js index 3469fc06..e5269daf 100644 --- a/services/feedcheck.js +++ b/services/feedcheck.js @@ -135,7 +135,7 @@ function checkEntries(parent, entries, callback) { if (/\[RSS_ENTRY[\w]*\]/i.test(html)) { html = html.replace(/\[RSS_ENTRY\]/, entry.content); //for backward compatibility Object.keys(entry).forEach(key => { - html = html.replace('[RSS_ENTRY_' + key.toUpperCase() + ']', entry[key]); + html = html.replace(new RegExp('\\[RSS_ENTRY_' + key.toUpperCase() + '\\]', 'g'), entry[key]); }); } else { html = entry.content + html;