diff --git a/index.js b/index.js index 5e0afcb..22e48dd 100644 --- a/index.js +++ b/index.js @@ -114,9 +114,10 @@ export default async function now() { const matched = regex.test(newNow) console.log(`Regex match found: ${matched}`) - newNow = newNow.replace(regex, (match, openTag, closeTag) => { + newNow = newNow.replace(regex, (match, openTag, oldText, closeTag) => { console.log(`DEBUG: Replacing match for ${item.id}`) console.log(`Old match: ${match}`) + console.log(`Old text: ${oldText}`) // replace href in opening tag const updatedOpenTag = openTag.replace( /href=["'][^"']*["']/,