Sha256: b12a6e4d3ea8ef5a7b96d12643056d5af5ab88c8c3557f5eaec45ed132c69b6b
Contents?: true
Size: 569 Bytes
Versions: 8
Compression:
Stored size: 569 Bytes
Contents
// Matches a whole line break (where CRLF is considered a single // line break). Used to count lines. "use strict"; exports.__esModule = true; exports.isNewLine = isNewLine; var lineBreak = /\r\n?|\n|\u2028|\u2029/; exports.lineBreak = lineBreak; var lineBreakG = new RegExp(lineBreak.source, "g"); exports.lineBreakG = lineBreakG; function isNewLine(code) { return code === 10 || code === 13 || code === 0x2028 || code === 0x2029; } var nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/; exports.nonASCIIwhitespace = nonASCIIwhitespace;
Version data entries
8 entries across 8 versions & 3 rubygems