|
Last change
on this file 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 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
|
|---|
| 6 | function words(str) {
|
|---|
| 7 | return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | exports.CASE_SPLIT_PATTERN = CASE_SPLIT_PATTERN;
|
|---|
| 11 | exports.words = words;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.