@karmaniverous/get-dotenv
    Preparing search index...

    Function compileKeyPatterns

    • Compile key patterns for repeated test calls. A string matches case-insensitively. A RegExp is copied without its g and y flags: test on such a pattern starts at its lastIndex and moves it, so reusing it across keys would skip matches (review 5916926264 #6). The caller's RegExp is never touched.

      Parameters

      • patterns: readonly (string | RegExp)[]

        The patterns.

      Returns RegExp[]

      One RegExp per pattern, safe to test against any number of keys.