Fix backup id-edb search check

This commit is contained in:
ewin 2025-07-29 19:45:29 -04:00
parent ca097159dd
commit 64a5bc6af1
Signed by: erin
SSH key fingerprint: SHA256:swjoHhREbZPbWe+gyJNi24d4NAxJSyUIm3fpZj4z3wc

View file

@ -31,7 +31,7 @@ const existingReleaseParameter = /^( *)\|( *)release( *)=( *).*$/m;
* @returns {string} * @returns {string}
*/ */
function insertInfoboxEDBID (pageContent, edbID) { function insertInfoboxEDBID (pageContent, edbID) {
if (pageContent.includes(`edb-id = ${edbID}`)) { if (pageContent.includes(`id-edb = ${edbID}`)) {
console.log('what????', pageContent); console.log('what????', pageContent);
throw new Error('Page seems to already contain its own EDB ID??'); throw new Error('Page seems to already contain its own EDB ID??');
} }