Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
23
my-app/node_modules/@schematics/angular/utility/eol.js
generated
vendored
Executable file
23
my-app/node_modules/@schematics/angular/utility/eol.js
generated
vendored
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google LLC All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getEOL = void 0;
|
||||
const node_os_1 = require("node:os");
|
||||
const CRLF = '\r\n';
|
||||
const LF = '\n';
|
||||
function getEOL(content) {
|
||||
const newlines = content.match(/(?:\r?\n)/g);
|
||||
if (newlines?.length) {
|
||||
const crlf = newlines.filter((l) => l === CRLF).length;
|
||||
const lf = newlines.length - crlf;
|
||||
return crlf > lf ? CRLF : LF;
|
||||
}
|
||||
return node_os_1.EOL;
|
||||
}
|
||||
exports.getEOL = getEOL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue