diff --git a/lib/node_modules/@stdlib/regexp/whitespace/README.md b/lib/node_modules/@stdlib/regexp/whitespace/README.md index a1c3f0628c61..36b6e57c9dce 100644 --- a/lib/node_modules/@stdlib/regexp/whitespace/README.md +++ b/lib/node_modules/@stdlib/regexp/whitespace/README.md @@ -111,6 +111,8 @@ var out = replace( str, reWhitespace.REGEXP_CAPTURE, '$1$1' ); - Matches one related white space character without the Unicode character property "WSpace=Y" (zero width non-breaking space which was deprecated as of Unicode 3.2). +- Why not just use `\\s`? While `\\s` is convenient, this package provides an explicit, versioned set of Unicode whitespace code points (plus `U+FEFF` for historical reasons) and lets you consistently generate expressions with user-supplied flags and optional capture groups. Using an explicit character class can be helpful if you want to avoid differences across JavaScript engines/spec interpretations (e.g., around Unicode mode and what counts as whitespace). + - The `REGEXP` regular expression is defined as ```text