mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ref 2263134b: Better identify potential JSON. Close gh-1401.
(cherry picked from commit 083edd60a6)
Conflicts:
src/data.js
This commit is contained in:
committed by
Richard Gibson
parent
08b6271b6d
commit
aa70819598
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user