gog: Claim (.*) and don't miss -> Claim (.*), fixes #60
This commit is contained in:
parent
ec2d31ed79
commit
a90062b631
1 changed files with 1 additions and 1 deletions
2
gog.js
2
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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue