Skip to content

Commit bfa114e

Browse files
authored
refactor(attributes): remove unneeded escapes (#1635)
1 parent 703ec16 commit bfa114e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var primitives = {
2323
// Attributes that are booleans
2424
var rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
2525
// Matches strings that look like JSON objects or arrays
26-
var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;
26+
var rbrace = /^(?:{[\w\W]*}|\[[\w\W]*])$/;
2727

2828
/**
2929
* Gets a node's attribute. For boolean attributes, it will return the value's

0 commit comments

Comments
 (0)