Lessons from open-source: Describe what your regex does with a commented example.
This lesson is picked from Nextjs source code. In this article, you will learn why it is helpful to add a comment with an example explaning what your regex does.
format-server-error.ts
I came across a function named formatServerError(err) in create-e...
ramunarasinga.hashnode.dev3 min read