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:50:13 -0400 |
commit | aa708195982d2637f9949e9c250c475f88214af9 (patch) | |
tree | f065a4d2bda56f656abd4b708ffa3902e5765637 /src/data.js | |
parent | 08b6271b6d00ba81941ff0c7646bdc790d803e28 (diff) | |
download | jquery-aa708195982d2637f9949e9c250c475f88214af9.tar.gz jquery-aa708195982d2637f9949e9c250c475f88214af9.zip |
Ref 2263134b: Better identify potential JSON. Close gh-1401.
(cherry picked from commit 083edd60a6c189f17ff1087431e849dd11c111b2)
Conflicts:
src/data.js
Diffstat (limited to 'src/data.js')
-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 877f88880..16dd4276a 100644 --- a/src/data.js +++ b/src/data.js @@ -5,7 +5,7 @@ define([ "./data/accepts" ], function( jQuery, deletedIds, support ) { -var rbrace = /(?:\{[\w\W]*\}|\[[\w\W]*\])$/, +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /([A-Z])/g; function dataAttr( elem, key, data ) { |