You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
368 B
JavaScript

"use strict";
const { optional } = require("../../operations");
const LineFeed = require("./line-feed");
const CarriageReturn = require("./carriage-return");
module.exports = {
LF: LineFeed,
CR: CarriageReturn,
CRLF: function* () {
yield CarriageReturn;
yield LineFeed;
},
looseCRLF: function* () {
yield optional(CarriageReturn);
yield LineFeed;
}
};