Splitting lines on unix systems

● ARCHIVED · READ-ONLY
Started by Tsukihime 2 posts View original ↗
  1. 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.
  2. Maybe this? :D

    Code:
    /[\r\n]+/