File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 130
130
reTrimStart = / ^ \s + / ,
131
131
reTrimEnd = / \s + $ / ;
132
132
133
+ /** Used to match non-compound words composed of alphanumeric characters. */
134
+ var reBasicWord = / [ a - z A - Z 0 - 9 ] + / g;
135
+
133
136
/** Used to match backslashes in property paths. */
134
137
var reEscapeChar = / \\ ( \\ ) ? / g;
135
138
218
221
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
219
222
var reComplexSymbol = RegExp ( rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq , 'g' ) ;
220
223
221
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
222
- var reHasComplexSymbol = RegExp ( '[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']' ) ;
223
-
224
- /** Used to match non-compound words composed of alphanumeric characters. */
225
- var reBasicWord = / [ a - z A - Z 0 - 9 ] + / g;
226
-
227
224
/** Used to match complex or compound words. */
228
225
var reComplexWord = RegExp ( [
229
226
rsUpper + '?' + rsLower + '+(?=' + [ rsBreak , rsUpper , '$' ] . join ( '|' ) + ')' ,
234
231
rsEmoji
235
232
] . join ( '|' ) , 'g' ) ;
236
233
234
+ /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
235
+ var reHasComplexSymbol = RegExp ( '[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']' ) ;
236
+
237
237
/** Used to detect strings that need a more robust regexp to match words. */
238
238
var reHasComplexWord = / [ a - z ] [ A - Z ] | [ A - Z ] { 2 , } [ a - z ] | [ 0 - 9 ] [ a - z A - Z ] | [ a - z A - Z ] [ 0 - 9 ] | [ ^ a - z A - Z 0 - 9 ] / ;
239
239
You can’t perform that action at this time.
0 commit comments