Sha256: 342d917f40943c374ff7a8048f569ff0eeffae1d8bb51bbe0aceff424b556a7c
Contents?: true
Size: 492 Bytes
Versions: 66
Compression:
Stored size: 492 Bytes
Contents
/** Used to detect strings that need a more robust regexp to match words. */ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; /** * Checks if `string` contains a word composed of Unicode symbols. * * @private * @param {string} string The string to inspect. * @returns {boolean} Returns `true` if a word is found, else `false`. */ function hasUnicodeWord(string) { return reHasUnicodeWord.test(string); } module.exports = hasUnicodeWord;
Version data entries
66 entries across 65 versions & 11 rubygems