Bump to v4.15.0.

This commit is contained in:
John-David Dalton
2016-08-11 23:27:31 -07:00
parent 3d3ce0979f
commit fff78cbd5a
54 changed files with 581 additions and 312 deletions

18
_hasUnicodeWord.js Normal file
View File

@@ -0,0 +1,18 @@
define([], function() {
/** 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);
}
return hasUnicodeWord;
});