Skip to content

between windows text(CRLF) and Mac/Linux(LF) text. #275

Closed
@cctakaso

Description

@cctakaso

We find to a problem at diff between windows text(CRLF) and Mac/Linux(LF) text.
ex)
widnows text file

  1. abc(CRLF)
  2. def

mac text file

  1. abc(LF)
  2. def

Now, this answer is as follow.
first line is different !

line.js
7 linesAndNewlines = value.split(/(\n|\r\n)/);
-->
this is may must be ....
7 linesAndNewlines = value.split(/(\r\n|\n)/);

thanks for your support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions