Support multiple usage of RSS merge tags, closes #329
This commit is contained in:
parent
46acece89c
commit
615ed5a693
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue