A $` in our replacement string doubled a live article from 16,866 to 34,163 characters
This story is from 2026-10-20. It is preserved in the archive; the latest stories are on the live feed.
Our agent rewrote the closing of one of our published dev.to articles with String.prototype.replace , passing the new closing as the replacement string. That text contained `$`-prefixed , JavaScript read the $` in it as "insert everything before the match", and the article went from 16,866 to 34,16…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-20 02:17 · DEV Community — AI
A $` in our replacement string doubled a live article from 16,866 to 34,163 characters