From 0b63f2c259b51eddf2bd9e15221bdb1205c1bc1b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 10 Aug 2016 23:18:15 -0700 Subject: [PATCH] Implement `reAsciiWord` by a negated character class to match more when unicode is dropped. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index fd21b4459..1e903892a 100644 --- a/lodash.js +++ b/lodash.js @@ -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;