This may seem overly complicated compared to an approach such as converting all line terminators to a single character, for example .
ECMAScript[REF] accepts LS and PS as line breaks, but considers U+0085 (NEL) white space, not a line break.