UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

16 lines (13 loc) 322 B
function ariaAllowedAttrMatches(node, virtualNode) { const aria = /^aria-/; const attrs = virtualNode.attrNames; if (attrs.length) { for (let i = 0, l = attrs.length; i < l; i++) { if (aria.test(attrs[i])) { return true; } } } return false; } export default ariaAllowedAttrMatches;