Skip to content

RegExpMergeFlagsConflictStrategy

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

Import:

import type { RegExpMergeFlagsConflictStrategy } from 'obsidian-dev-utils/reg-exp';

Signature:

export enum RegExpMergeFlagsConflictStrategy

Members:

MemberValueDescription
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: