RGex Builder Platform - v1.2.0
    Preparing search index...

    Function hasRepeatingChars

    • Detects if a string contains repeating characters (e.g., "aaa" or "111").

      Parameters

      • password: string

        The string to check.

      • minLength: number = 3

        The minimum number of repeating characters to be considered a repetition. Defaults to 3.

      Returns boolean

      true if repeating characters are found, otherwise false.