Skip to content

Commit bd32680

Browse files
committed
Add more debug logging
1 parent 96d86e0 commit bd32680

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/utils/releases.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { resolve } from "node:path/posix";
2-
import { handlers } from "svelte/legacy";
3-
41
interface Release {
52
name: string;
63
body: string;
@@ -82,11 +79,17 @@ function handleRegex(obj: Release, regex: RegExp, onMatch: (match: string) => st
8279

8380
const alreadyMatched: string[] = [];
8481
let result = obj.body.matchAll(regex);
85-
if (result == null || result.map == null) {
82+
if (result == null) {
8683
console.warn("Result of match was null.");
8784
return;
8885
}
8986

87+
console.info(result);
88+
if (result.map == null) {
89+
console.warn("Yeah it cannot find the map method")
90+
return;
91+
}
92+
9093
result
9194
.map((match) => match[0])
9295
.forEach((match) => {

0 commit comments

Comments
 (0)