UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

11 lines (8 loc) 329 B
import { querySelectorAll } from '../../core/utils'; function internalLinkPresentEvaluate(node, options, virtualNode) { const links = querySelectorAll(virtualNode, 'a[href]'); return links.some(vLink => { return /^#[^/!]/.test(vLink.actualNode.getAttribute('href')); }); } export default internalLinkPresentEvaluate;