Skip to content

Commit 39de5d1

Browse files
committed
Refactor: Fixed misleading local variable name
1 parent 629b469 commit 39de5d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/recipes/hanayama_huzzles/HanayamaHuzzlesRecipe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class HanayamaHuzzlesRecipe implements Recipe {
9898

9999
#markdownTableStringToHuzzles(markdownTableString: string): HanayamaHuzzle[] {
100100
const arrayOfArrays = this.markdownTableConverter.arrayOfArraysFromString(markdownTableString);
101-
const imageLinksRegex = new RegExp(/!\[[^\]]+\]\((?<link>[^)]+)(?=\))/g); // https://regex101.com/r/YlCOgc/2
101+
const imageLinkRegex = new RegExp(/!\[[^\]]+\]\((?<link>[^)]+)(?=\))/g); // https://regex101.com/r/YlCOgc/2
102102

103103
return arrayOfArrays.flatMap(array => {
104104
if (array.length < 5) {
@@ -110,7 +110,7 @@ export class HanayamaHuzzlesRecipe implements Recipe {
110110
const name = array[2];
111111

112112
const images = array[3];
113-
const imageLinkMatches = images.matchAll(imageLinksRegex);
113+
const imageLinkMatches = images.matchAll(imageLinkRegex);
114114
const imageLinks = Array.from(imageLinkMatches).flatMap(match => {
115115
if (match == null || match.groups == null) {
116116
return [];

0 commit comments

Comments
 (0)