From bfa114ef85fc04cf1cd26843a4e9f7d686500fb8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 2 Jan 2021 21:59:18 +0200 Subject: [PATCH] refactor(attributes): remove unneeded escapes (#1635) --- lib/api/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/attributes.js b/lib/api/attributes.js index 21e6207f61..d3f3f8f5fa 100644 --- a/lib/api/attributes.js +++ b/lib/api/attributes.js @@ -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