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