UNPKG

@pierre/diffs

Version:

11 lines (10 loc) 377 B
//#region src/utils/applyLineTextWithNewline.ts function applyLineTextWithNewline(line, lineText) { if (line.endsWith("\r\n")) return lineText + "\r\n"; if (line.endsWith("\r")) return lineText + "\r"; if (line.endsWith("\n")) return lineText + "\n"; return lineText; } //#endregion export { applyLineTextWithNewline }; //# sourceMappingURL=applyLineTextWithNewline.js.map