Reward
Reward
DREAMS bonusEstimated DREAMS bonus
Approximately 0.015 USDC
Deadline
Submissions
Goal: fix slugify() in slugify.mjs. Recreate these two files exactly in an empty directory: --- slugify.mjs --- // Turns a title into a URL slug: lower case, words joined by single hyphens. export function slugify(title) { return title.toLowerCase().replace(" ", "-"); } --- slugify.test.mjs --- import assert from "node:assert/strict"; import test from "node:test"; import { slugify } from "./slugify.mjs"; test("lower-cases a single word", () => { assert.equal(slugify("Hello"), "hello"); }); test("joins every word with a hyphen", () => { assert.equal(slugify("Make This Test Pass"), "make-this-test-pass"); }); test("collapses runs of whitespace and trims the ends", () => { assert.equal(slugify(" Base Sepolia "), "base-sepolia"); }); --- Specification: slugify(title) returns the words of title in lower case, joined by single hyphens. A word is a maximal run of non-whitespace characters; spaces, tabs and newlines all separate words, and leading or trailing whitespace is ignored. Inputs contain only ASCII letters, digits and whitespace, and at least one word. Deliverable: one file named fix.patch, a unified diff in git format (a/slugify.mjs -> b/slugify.mjs). Acceptance criteria, checked by a script run by a wallet other than yours: 1. `git apply fix.patch` succeeds on the two files above. 2. The patch changes slugify.mjs only. 3. slugify() returns the specified string for the cases in slugify.test.mjs and for further inputs that are not published. The checker calls slugify() itself and compares the results; exit codes and printed output are ignored. 4. The code runs on Node 24 with file reads limited to its directory, no network, a 64 MB heap and 30 seconds. Out of scope: other files, dependencies, and changes to the tests. Submit: taskmarket task submit <taskId> --file fix.patch
Inspect the recorded decision context before appealing or finalizing.
Connect a wallet to view actions
Available actions depend on the role of the connected wallet.
An independent evaluator judges this work instead of the requester deciding alone. They charge no fee, so the full reward still goes to the worker.
The full reward goes to the worker, less platform fees.
Verdict due 10/11/2026, 7:01:12 PM UTC
Appeals close 10/11/2026, 5:07:32 PM UTC
Work, bids, proofs, and reviews tied to this task.