| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /home/livedhms/lmgt/node_modules/graphmatch/dist/ |
| Current File : /home/livedhms/lmgt/node_modules/graphmatch/dist/index.js |
/* IMPORT */
import { getNodeFlags, getNodeSource } from './utils.js';
/* MAIN */
const graphmatch = (node, input, options) => {
return graphmatch.compile(node, options).test(input);
};
/* UTILITIES */
graphmatch.compile = (node, options) => {
const partial = options?.partial ?? false;
const source = getNodeSource(node, partial);
const flags = getNodeFlags(node);
return new RegExp(`^(?:${source})$`, flags);
};
export default graphmatch;