Skip to content

Commit a173abd

Browse files
committed
support less stars
1 parent 0de27c6 commit a173abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/create-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function runWorker(session, year, day = 1) {
6060
}
6161

6262
function cleanResult(str, year) {
63-
if (str.includes("fifty stars")) {
63+
if (str.includes("Congratulations!")) {
6464
str = str.match(/<main>([^]*)<\/main>/)[1].trim();
6565
str = str.replace(/<article>[^]*<\/article>/, "");
6666
return `<a href="https://adventofcode.com/${year}">[Go Check on Your Calendar]</a> ${str}`;

0 commit comments

Comments
 (0)