Split on newline, but not newline-space in JS : <p>I am trying to split my string into an array on every new line, but not if a newline begins with a space. </p>

<pre><code>ORGANIZER;organizer@example.com //YES
ATTENDEE; user@example.com, another@exa //YES
 mple.com, peter@example.com //NO
DESCRIPTION;LANGUAGE=en-US //YES
</code></pre>
