diff options
author | Ronny Springer <springer.ronny@gmail.com> | 2013-10-11 10:09:54 +0200 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-10-16 08:46:45 -0400 |
commit | 083edd60a6c189f17ff1087431e849dd11c111b2 (patch) | |
tree | 92ad7821287a06dcebf8d6858f0579e0bb26bded /src | |
parent | 209f0a8a8ba08efed5f66ce6ccae051b16be1189 (diff) | |
download | jquery-083edd60a6c189f17ff1087431e849dd11c111b2.tar.gz jquery-083edd60a6c189f17ff1087431e849dd11c111b2.zip |
Ref 2263134b: Better identify potential JSON. Close gh-1401.
Diffstat (limited to 'src')
-rw-r--r-- | src/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index bdb642073..5baf1c72a 100644 --- a/src/data.js +++ b/src/data.js @@ -17,7 +17,7 @@ define([ 5. Avoid exposing implementation details on user objects (eg. expando properties) 6. Provide a clear path for implementation upgrade to WeakMap in 2014 */ -var rbrace = /(?:\{[\w\W]*\}|\[[\w\W]*\])$/, +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /([A-Z])/g; function dataAttr( elem, key, data ) { |