Skip to content

Commit

Permalink
refactor(attributes): remove unneeded escapes (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jan 2, 2021
1 parent 703ec16 commit bfa114e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/attributes.js
Expand Up @@ -23,7 +23,7 @@ var primitives = {
// Attributes that are booleans
var rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
// Matches strings that look like JSON objects or arrays
var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;
var rbrace = /^(?:{[\w\W]*}|\[[\w\W]*])$/;

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

0 comments on commit bfa114e

Please sign in to comment.