您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_asciiWords.js 404B

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