Download spectrum/src/views/viewHelpers/textValidationHelper.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/viewHelpers/textValidationHelper.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/viewHelpers/textValidationHelper.js
-
curl -L -o textValidationHelper.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/viewHelpers/textValidationHelper.js
537 Bytes
| // @flow | |
| /** | |
| * Collection of unicode code points that represent whitespaces and some other non visual characters. | |
| */ | |
| export const whiteSpaceRegex = /[\u007F\u0080-\u00A0\u0378\u0379\u0380-\u0383\u038B\u038D\u03A2\u0557\u0558\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\u180E\u200B-\u200D\u2060\uFEFF]/g; | |
| /** | |
| * Collection of unicode code points that represent hyphens, different from the traditional ocidental hyphen (\u002D). | |
| */ | |
| export const oddHyphenRegex = /[\u00AD\u058A\u1806\u2010-\u2015\u2E3A\u2E3B\uFE58\uFE63\uFF0D]/g; | |