From bae8eecdb821b80f4bfc6555b477fa340c3de0f6 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 16 Dec 2019 17:41:06 +0100 Subject: Better attribut name convention --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/index.js b/dist/index.js index e5782b4..b857126 100644 --- a/dist/index.js +++ b/dist/index.js @@ -128,7 +128,7 @@ function filterAttributes(prop, config, type) { }; var isGlobal = function isGlobal(p) { - return htmlElemAttr['*'].indexOf(p) >= 0 || p.match(/^aria-[a-z]{2,24}$/) || p.match(/^data-[a-z]{2,24}$/); + return htmlElemAttr['*'].indexOf(p) >= 0 || p.match(/^aria-[a-z][a-z.-_0-9]*$/) || p.match(/^data-[a-z][a-z_.-0-9]*$/); }; var inScope = function inScope(_) { -- cgit v1.2.3