aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-12-15 19:24:47 +0100
committerache <ache@ache.one>2019-12-15 19:24:47 +0100
commit1f7a9066bc69292c9f62538c9c042a2df746e0f0 (patch)
treefc9e41b6dd2e9f244f0684fad1057a4fc2eefb08 /dist
parentUpdate version (diff)
Support for custom data attributes
Diffstat (limited to 'dist')
-rw-r--r--dist/index.js2
1 files changed, 1 insertions, 1 deletions
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(_) {