We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152543c commit 8b2ff6dCopy full SHA for 8b2ff6d
src/recipes/iq_puzzles/IQPuzzlesRecipe.ts
@@ -45,13 +45,22 @@ export class IQPuzzlesRecipe implements Recipe {
45
return null;
46
}
47
48
- const titleMatch = title.match(nameRegex);
49
- const titleGroups = titleMatch?.groups;
+ let name: string;
50
51
- const name = titleGroups?.name;
+ const exceptionTitle = 'Elephant';
+ if (title === exceptionTitle) {
52
+ name = exceptionTitle;
53
+ } else {
54
+ const titleMatch = title.match(nameRegex);
55
+ const titleGroups = titleMatch?.groups;
56
- if (name == null) {
- return null;
57
+ const tempName = titleGroups?.name;
58
+
59
+ if (tempName == null) {
60
+ return null;
61
+ }
62
63
+ name = tempName;
64
65
66
const image = product.querySelector('a wow-image img');
0 commit comments