Erster Docker-Stand
This commit is contained in:
14
_node_modules/graphmatch/dist/index.js
generated
vendored
Normal file
14
_node_modules/graphmatch/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* 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;
|
||||
Reference in New Issue
Block a user