node-dextrin - v0.1.0
    Preparing search index...

    Class export=

    DXN regex (~r/pattern/flags, Erlang :re/PCRE-style semantics). Not compiled to a native RegExp on decode — x (extended/verbose whitespace-and-comments mode), f (firstline), and r (ungreedy) have no JS RegExp equivalent, so this class keeps the raw pattern/flags data instead, the same way Regex.t() wraps Erlang :re options rather than any single compiled form. i/m/s/u map 1:1 to native flags — toRegExp() succeeds only when none of x/f/r are set, rather than silently dropping them.

    Index
    • Parameters

      • pattern: string
      • Optionalflags: {
            f?: boolean;
            i?: boolean;
            m?: boolean;
            r?: boolean;
            s?: boolean;
            u?: boolean;
            x?: boolean;
        } = {}

      Returns export=

    dxnType: string
    flags: {
        f: boolean;
        i: boolean;
        m: boolean;
        r: boolean;
        s: boolean;
        u: boolean;
        x: boolean;
    }
    pattern: string
    • Parameters

      • other: unknown

      Returns -1 | 0 | 1

    • Returns RegExp

      only when x/f/r are all unset — those have no native RegExp equivalent, so this throws rather than produce a RegExp that silently drops part of the pattern's meaning.