Ensure _.words detects compound words where an all caps word is next to a capitalized word. [closes #2163]

This commit is contained in:
John-David Dalton
2016-03-28 07:57:37 -07:00
parent de53132692
commit dcec882262
2 changed files with 7 additions and 4 deletions

View File

@@ -229,7 +229,7 @@
].join('|'), 'g');
/** Used to detect strings that need a more robust regexp to match words. */
var reHasComplexWord = /[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
var reHasComplexWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
/** Used to assign default `context` object properties. */
var contextProps = [