Skip to content

Commit 53ba184

Browse files
committed
Fixed crashing Hanayama Huzzle puzzles updating
``` String.prototype.matchAll called with a non-global RegExp argument ``` (reverted from commit e7187d5)
1 parent 08b8090 commit 53ba184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/regex/RegexFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class RegexFactory {
22
imageMarkdownLinkRegex(): RegExp {
3-
return new RegExp(/!\[[^\]]+\]\((?<link>[^)]+)(?=\))/); // https://regex101.com/r/YlCOgc/3
3+
return new RegExp(/!\[[^\]]+\]\((?<link>[^)]+)(?=\))/g); // https://regex101.com/r/YlCOgc/2
44
}
55
}

0 commit comments

Comments
 (0)