luhn-generator
Version:
A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm
18 lines (14 loc) • 356 B
JavaScript
import { getNodeAttributes } from '../core/utils';
function ariaAllowedAttrMatches(node) {
const aria = /^aria-/;
if (node.hasAttributes()) {
let attrs = getNodeAttributes(node);
for (let i = 0, l = attrs.length; i < l; i++) {
if (aria.test(attrs[i].name)) {
return true;
}
}
}
return false;
}
export default ariaAllowedAttrMatches;