Urara-Blog/node_modules/.pnpm-store/v3/files/c9/9613231b63e99e996446d7713916bc58e0208ebbcad08180e67cb3714f1c09b00b1f211a0ab0bfde065c2ee69c063e0be3706e9a9e2e19d54a3119ee37cd99
2022-08-14 01:14:53 +08:00

15 lines
404 B
Text

/** Used to match words composed of alphanumeric characters. */
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
/**
* Splits an ASCII `string` into an array of its words.
*
* @private
* @param {string} The string to inspect.
* @returns {Array} Returns the words of `string`.
*/
function asciiWords(string) {
return string.match(reAsciiWord) || [];
}
module.exports = asciiWords;