Function splitRange

  • Split a string based on a range delimiter pattern.

    A range delimited string has the pattern VALUE - VALUE, where whitespace at the start, around the - delimiter, and at the end is not significant. The delimited can be any one of -, ~, or (0xFF5E).

    Parameters

    • range: undefined | string

      the range string to split into components, whitespace trimmed

    Returns string[] | undefined

    the split range, of length 1 or 2, or undefined if range is undefined

Generated using TypeDoc