Skip to content

Commit

Permalink
Fixed incomplete IQ Puzzles names
Browse files Browse the repository at this point in the history
  • Loading branch information
revolter committed Feb 28, 2024
1 parent daa14ea commit 2b293d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recipes/iq_puzzles/IQPuzzlesRecipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class IQPuzzlesRecipe implements Recipe {
}

async #scrapePuzzles(): Promise<IQPuzzle[]> {
const nameRegex = new RegExp(/(?<name>\w+)$/); // https://regex101.com/r/AuK9pb/1
const nameRegex = new RegExp(/\s*(?<name>[\w\s]+)$/); // https://regex101.com/r/AuK9pb/2
const cleanedLinkRegex = new RegExp(/^(?<cleanedLink>.+?\.jpg)/); // https://regex101.com/r/fd3A6U/1
const scraper = new WebsiteScraper([IQPuzzlesRecipe.#SCRAPE_URL]);

Expand Down

0 comments on commit 2b293d9

Please sign in to comment.