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 579bcf1 commit 6b34e9aCopy full SHA for 6b34e9a
‎packages/github-user-contribution/index.ts
@@ -60,9 +60,13 @@ const parseUserPage = (content: string) => {
60
.toArray()
61
.map((x) => {
62
const level = +x.attribs["data-level"];
63
- const count = +x.attribs["data-count"];
64
const date = x.attribs["data-date"];
65
+ const literalCount = $(x)
66
+ .text()
67
+ .match(/(No|\d+) contributions? on/)![1];
68
+ const count = literalCount === "No" ? 0 : +literalCount;
69
+
70
const color = colorScheme[level];
71
72
if (!color) throw new Error("could not determine the color of the cell");
0 commit comments