Sha256: 89ed9fac3f97e188633a2c63a5528282ef73028fef5fc3e6e9a9e9e1cc6cc3a1

Contents?: true

Size: 491 Bytes

Versions: 208

Compression:

Stored size: 491 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

208 entries across 207 versions & 22 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.59 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.58 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.57 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.56 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.55 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.54 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.53 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.52 node_modules/lodash/_hasUnicodeWord.js
trusty-cms-6.3.1 node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.51 node_modules/lodash/_hasUnicodeWord.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js
immosquare-cleaner-0.1.50 node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/_hasUnicodeWord.js