aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-12-16 17:41:06 +0100
committerache <ache@ache.one>2019-12-16 17:41:06 +0100
commitbae8eecdb821b80f4bfc6555b477fa340c3de0f6 (patch)
tree5823af1aaffe7c7653f01d615b07315c3b2c3504 /dist
parentSupport for custom data attributes (diff)
Better attribut name convention
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 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(_) {