Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/regexp/whitespace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading