magiclogger - v0.1.0
    Preparing search index...

    Function validateStyleRanges

    Style extraction and reconstruction utilities for MAGIC schema. These functions enable parsing styled text and reconstructing it from MAGIC log entries.

    • Validates that style ranges don't exceed message bounds.

      Parameters

      • plainText: string

        Plain text message

      • Optionalstyles: StyleRange[]

        Array of style ranges

      Returns boolean

      True if all ranges are valid