• This version of splitLinesInclEol() does not use lookbehind assertions in regular expressions (which e.g. Safari hadn’t supported for a long time).

    Parameters

    • text: string

    Returns string[]