Files
simple-mail-cleaner/backend/node_modules/zeptomatch/dist/compile/index.js
2026-01-23 01:33:35 +01:00

12 lines
343 B
JavaScript

/* IMPORT */
import graphmatch from 'graphmatch';
/* MAIN */
const compile = (node, options) => {
const re = graphmatch.compile(node, options);
const source = `${re.source.slice(0, -1)}[\\\\/]?$`; // With optional trailing slash
const flags = re.flags;
return new RegExp(source, flags);
};
/* EXPORT */
export default compile;