mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
17 lines
350 B
JavaScript
17 lines
350 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = foldLine;
|
|
function foldLine(line) {
|
|
var parts = [];
|
|
var length = 75;
|
|
while (line.length > length) {
|
|
parts.push(line.slice(0, length));
|
|
line = line.slice(length);
|
|
length = 74;
|
|
}
|
|
parts.push(line);
|
|
return parts.join('\r\n\t');
|
|
} |