Comment

Comment by zzo38computer

I would have make the "escapeForRegExp" function built-in (it seems to me the kind of thing should be built-in), perhaps called RegExp.quote. (I would also to add support for many features of PCRE.)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton