Skip to content

Commit 2b293d9

Browse files
committed
Fixed incomplete IQ Puzzles names
1 parent daa14ea commit 2b293d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recipes/iq_puzzles/IQPuzzlesRecipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class IQPuzzlesRecipe implements Recipe {
4242
}
4343

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

0 commit comments

Comments
 (0)