@blwat/utils - v0.1.0-alpha.2
    Preparing search index...

    Class StringUtility

    Static properties and methods for validating string types.

    0.1.0

    Index

    Accessors

    • get singleLineLowercaseTrimmedPattern(): RegExp

      Returns RegExp

      Regular expression pattern for validating single-line lowercase strings.

      This expression does not allow tab breaks, new lines, leading whitespace, trailing whitespace, or consecutive spaces within the string.

      0.1.0

    • get singleLineTrimmedPattern(): RegExp

      Returns RegExp

      Regular expression pattern for validating single-line mixed-case strings.

      This expression does not allow tab breaks, new lines, leading whitespace, trailing whitespace, or consecutive spaces within the string.

      0.1.0

    • get singleLineUppercaseTrimmedPattern(): RegExp

      Returns RegExp

      Regular expression pattern for validating single-line uppercase strings.

      This expression does not allow tab breaks, new lines, leading whitespace, trailing whitespace, or consecutive spaces within the string.

      0.1.0

    Methods

    • Is the given input a non-empty string? Non-empty strings must contain at least one non-whitespace character.

      Parameters

      • input: unknown

      Returns boolean

      0.1.0

    • Is the given input a string?

      Parameters

      • input: unknown

      Returns input is string

      0.1.0