Open rauschma opened 6 years ago
Thanks for this book and all you do!
This might just be me, but I found the first paragraph of this chapter pretty confusing:
Currently, the dot (.) in regular expressions doesn’t match line terminator characters:
/^[^]$/.test('\n') true
I was confused because the example code doesn’t try to use a dot in the regex at all. It was extra confusing for me since I didn’t know about the [^]
hack, which you ably explain later in the chapter.
I may well be missing something, so take it as one person’s experience, and thanks again for spreading knowledge!
@aickin Yes, that was a typo. Fixed now, thanks!
Small typo: "The following for characters" -> "The following four characters".
I believe there's a small typo ("termators"): "Line termators in ECMAScript affect"
Another one, "nor not"
http://exploringjs.com/es2018-es2019/ch_regexp-dotall-flag.html