We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09713c5 commit c4510eaCopy full SHA for c4510ea
1 file changed
lib/hooks/usePantry.getVersions.ts
@@ -266,6 +266,20 @@ async function handleURLVersions(versions: PlainObject): Promise<SemVer[]> {
266
// the text of the link. We don't want to double count.
267
if (v && !rv.find((vx) => vx.raw === v.raw)) rv.push(v);
268
}
269
+
270
+ if (rv.length == 0) {
271
+ const m: string[] = []
272
+ for (const match of body.matchAll(new RegExp(matcher.slice(1, -1), "g"))) {
273
+ m.push(match.join(","))
274
+ }
275
+ console.warn(`parsing ${url} produced no versions`)
276
+ if (m.length == 0) {
277
+ console.warn("no matches for regex")
278
+ } else {
279
+ console.warn("matches:", m.join(" "))
280
281
282
283
return rv;
284
285
0 commit comments