source: node_modules/es-toolkit/dist/string/words.js@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 374 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
6function words(str) {
7 return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
8}
9
10exports.CASE_SPLIT_PATTERN = CASE_SPLIT_PATTERN;
11exports.words = words;
Note: See TracBrowser for help on using the repository browser.