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

Version Path
ilog-0.4.1 node_modules/babylon/lib/util/whitespace.js
ilog-0.4.0 node_modules/babylon/lib/util/whitespace.js
ilog-0.3.3 node_modules/babylon/lib/util/whitespace.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/babylon/lib/util/whitespace.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/babylon/lib/util/whitespace.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/babylon/lib/util/whitespace.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/babylon/lib/util/whitespace.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/babylon/lib/util/whitespace.js