Files
Library/node_modules/oniguruma-parser/dist/optimizer/transforms/expose-anchors.d.ts

9 lines
393 B
TypeScript
Raw Normal View History

2026-01-09 23:05:52 -05:00
import type { Visitor } from '../../traverser/traverse.js';
/**
Pull leading and trailing assertions out of capturing groups when possible; helps group unwrapping.
Ex: `(^abc$)` -> `^(abc)$`.
Ex: `(\b(?:a|bc)\b)` -> `\b((?:a|bc))\b`. The inner group can subsequently be unwrapped.
*/
declare const exposeAnchors: Visitor;
export { exposeAnchors, };
//# sourceMappingURL=expose-anchors.d.ts.map