Sha256: 34900f46371619c2e464aef2a814a00fd7b383405a29a99ed1e7f3b3d8882bef
Contents?: true
Size: 476 Bytes
Versions: 11
Compression:
Stored size: 476 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]/ export const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g
Version data entries
11 entries across 10 versions & 6 rubygems