From ac4d7cda0ac6ba3460ffcdac87a49199fc5c509c Mon Sep 17 00:00:00 2001 From: Himanshu Dinkar <111561592+yours7himanshu@users.noreply.github.com> Date: Sat, 14 Dec 2024 21:29:19 +0530 Subject: [PATCH] updated the docs with difference between the whitespace and /s --- .gitignore | 1 + docs/style-guides/javascript/README.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 4fdc97c09bfd..8fa914cdec5a 100644 --- a/.gitignore +++ b/.gitignore @@ -96,6 +96,7 @@ Desktop.ini # Node.js # ########### /node_modules/ +node_modules lib/node_modules/**/node_modules/ docs/**/node_modules/ pids diff --git a/docs/style-guides/javascript/README.md b/docs/style-guides/javascript/README.md index b69f1121b6a4..c9cde04f9d53 100644 --- a/docs/style-guides/javascript/README.md +++ b/docs/style-guides/javascript/README.md @@ -73,6 +73,8 @@ Hopefully, most of the conventions outlined below will help enable you to do so. - Even if you must use spaces, **never** mix tabs and spaces. This is formatting hell, as a simple find-and-replace is useless in the face of such chaos. +- For developers using the `@stdlib/regexp/whitespace` utility, note that it treats the NEL Unicode character (`\u0085`) as whitespace, unlike ECMAScript's `\s`. This may cause discrepancies in whitespace-sensitive code. + ##### Enforcement This project contains an [`.editorconfig`][editorconfig] file to be used in conjunction with IDE and/or browser plugins.