Skip to content

RegExpMergeFlagsConflictStrategy

A strategy to use when merging multiple regex flags into one alternation.

Import:

import type { RegExpMergeFlagsConflictStrategy } from '@mnaoumov/typescript-lib/reg-exp';

Signature:

export enum RegExpMergeFlagsConflictStrategy

Members:

Member Value Description
Intersect 'Intersect' Keep only the flags present in all regexes.
Throw 'Throw' Throw an error if the regexes have conflicting flags.
Union 'Union' Keep only the flags present in any regex.

Links to this page: