Splitting lines on unix systems

Windows line separators are stored as \r\n, while on *nix systems they are stored as \n.

For devs that have worked with RM on other platforms (or have published to other platforms), do new-lines become a problem?

Currently I'm assuming new-lines are stored as \r\n and that is what I am using in all of my note-parsing methods.

I can change it to use a regex like

Code:
/\r?\n/
To handle both cases. Just not sure how important this is.
Maybe this? 😀

Code:
/[\r\n]+/

Original thread: https://forums.rpgmakerweb.com/threads/splitting-lines-on-unix-systems.32479/