Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
404 bytes
|
Line | |
---|
1 | /** Used to match words composed of alphanumeric characters. */
|
---|
2 | var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Splits an ASCII `string` into an array of its words.
|
---|
6 | *
|
---|
7 | * @private
|
---|
8 | * @param {string} The string to inspect.
|
---|
9 | * @returns {Array} Returns the words of `string`.
|
---|
10 | */
|
---|
11 | function asciiWords(string) {
|
---|
12 | return string.match(reAsciiWord) || [];
|
---|
13 | }
|
---|
14 |
|
---|
15 | module.exports = asciiWords;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.