tc39 / proposal-regex-escaping

Proposal for investigating RegExp escaping for the ECMAScript standard
http://tc39.es/proposal-regex-escaping/
Creative Commons Zero v1.0 Universal
363 stars 32 forks source link

Spec Review #60

Closed jridgewell closed 11 months ago

jridgewell commented 11 months ago
ljharb commented 11 months ago

Why do we need a "ASCII punctuators that need escaping" phrase?

i suppose i could do it inline, but i'd still want a note to describe the list a bit, and the dfn seemed cleaner to me.

ljharb commented 11 months ago

@jridgewell please rereview; i've addressed all your comments.

jridgewell commented 11 months ago

Everything in my original list looks good. But a new thing I've noticed, we're appending both Code Units and Strings to escapedList:


- Append code unit U+005C (REVERSE SOLIDUS) to escapedList.
- …
- Append the elements of [UTF16EncodeCodePoint](https://tc39.es/ecma262/#sec-utf16encodecodepoint)(c) to escapedList.
ljharb commented 11 months ago

@jridgewell thanks, fixed! lmk if there's more items, or if i can check you off :-)

jridgewell commented 11 months ago

LGTM