Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cctakaso opened this issue Jan 7, 2020 · 1 comment
Closed

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

cctakaso opened this issue Jan 7, 2020 · 1 comment

Comments

@cctakaso
Copy link

cctakaso commented Jan 7, 2020

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!

@ExplodingCabbage
Copy link
Collaborator

Resolved by #344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants