We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 703ec16 commit bfa114eCopy full SHA for bfa114e
lib/api/attributes.js
@@ -23,7 +23,7 @@ var primitives = {
23
// Attributes that are booleans
24
var rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
25
// Matches strings that look like JSON objects or arrays
26
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;
+var rbrace = /^(?:{[\w\W]*}|\[[\w\W]*])$/;
27
28
/**
29
* Gets a node's attribute. For boolean attributes, it will return the value's
0 commit comments