Implement reAsciiWord by a negated character class to match more when unicode is dropped.

This commit is contained in:
John-David Dalton
2016-08-10 23:18:15 -07:00
parent 14fb27ce77
commit 0b63f2c259

View File

@@ -150,7 +150,7 @@
reSplitDetails = /,? & /;
/** Used to match non-compound words composed of alphanumeric characters. */
var reAsciiWord = /[a-zA-Z0-9]+/g;
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;