Give the work a boundary.
Repair separator handling. Keep the change inside one file.
The task
Repair slugify.
Lowercase words and digits. Collapse separators into a single hyphen and trim the edges.
- Allowed file
src/slugify.mjs- Check
- 8 fixed input/output cases
One expected transformation
"One__Two THREE""one-two-three"The task, its boundary and its return conditions travel together.