platform-bible-utils
    Preparing search index...

    Function formatScrRefRange

    • Formats a range of two Scripture references. Empty book, negative chapter or verse results in omitting that part.

      Parameters

      • startScrRef: SerializedVerseRef

        The Scripture reference to format at the start of the range.

      • endScrRef: SerializedVerseRef

        The Scripture reference to format at the end of the range.

      • Optionaloptions: FormatScrRefRangeOptions

        Optional FormatScrRefRangeOptions to format the scripture reference range. Default range separator is a hyphen surrounded by two spaces. Default book name options for the end ref are the book name options for the start ref. The book name is not repeated by default.

      Returns string

      The formatted range.