From 1f7a9066bc69292c9f62538c9c042a2df746e0f0 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 15 Dec 2019 19:24:47 +0100 Subject: Support for custom data attributes --- 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 c4ab6f6..e5782b4 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]{3,24}$/); + return htmlElemAttr['*'].indexOf(p) >= 0 || p.match(/^aria-[a-z]{2,24}$/) || p.match(/^data-[a-z]{2,24}$/); }; var inScope = function inScope(_) { -- cgit v1.2.3