Open jridgewell opened 2 years ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
hacker-news-slack-bot | ✅ Ready (Inspect) | Visit Preview | Aug 4, 2022 at 11:44PM (UTC) |
Could we add a description so it's clear what this PR solves? 🙏
This replaces the
String.p.replace
uses that are only used for side-effects with a fasterRegExp.p.exec
loop. This avoids the string allocation of the output string, and makes it a little more clear the loop is used for side-effects.