9 lines
327 B
TypeScript
9 lines
327 B
TypeScript
import type { Visitor } from '../../traverser/traverse.js';
|
|
/**
|
|
Extract alternating prefixes if patterns are repeated for each prefix.
|
|
Ex: `^a|!a|^bb|!bb|^c|!c` -> `(?:^|!)(?:a|bb|c)`.
|
|
Also works within groups.
|
|
*/
|
|
declare const extractPrefix2: Visitor;
|
|
export { extractPrefix2, };
|
|
//# sourceMappingURL=extract-prefix-2.d.ts.map
|