@alextheman/utility - v5.10.1
    Preparing search index...

    Function escapeRegexPattern

    • A function to properly handle escape sequences in a Regex pattern string, so it can be safely used with the RegExp constructor.

      Parameters

      • regexPattern: string

        The Regex pattern to escape.

      Returns string

      A new string with escape sequences properly handled.