From a90062b6319d525cb4f0773f6334200d770b0d2d Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Wed, 15 Feb 2023 19:33:44 +0100 Subject: [PATCH] gog: `Claim (.*) and don't miss` -> `Claim (.*)`, fixes #60 --- gog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gog.js b/gog.js index 713c09b..7dc9aa0 100644 --- a/gog.js +++ b/gog.js @@ -87,7 +87,7 @@ try { console.log('Currently no free giveaway!'); } else { const text = await page.locator('.giveaway-banner__title').innerText(); - const title = text.match(/Claim (.*) and don't miss/)[1]; + const title = text.match(/Claim (.*)/)[1]; const slug = await banner.getAttribute('href'); const url = `https://gog.com${slug}`; console.log(`Current free game: ${title} - ${url}`);