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 0de27c6 commit a173abdCopy full SHA for a173abd
src/utils/create-worker.js
@@ -60,7 +60,7 @@ function runWorker(session, year, day = 1) {
60
}
61
62
function cleanResult(str, year) {
63
- if (str.includes("fifty stars")) {
+ if (str.includes("Congratulations!")) {
64
str = str.match(/<main>([^]*)<\/main>/)[1].trim();
65
str = str.replace(/<article>[^]*<\/article>/, "");
66
return `<a href="https://adventofcode.com/${year}">[Go Check on Your Calendar]</a> ${str}`;
0 commit comments