Simplify reWords.

This commit is contained in:
John-David Dalton
2014-05-19 08:38:01 -07:00
parent 387176e83d
commit 1111c20d54

View File

@@ -84,7 +84,7 @@
var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
/** Used to match words to create compound words */
var reWords = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g;
var reWords = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g;
/** Used to detect and test whitespace */
var whitespace = (