Browse Source

Remove extra chars from line breaks check (match CM spec)

pull/599/head
Vitaly Puzrin 5 years ago
committed by GitHub
parent
commit
39a35f478f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      lib/rules_core/normalize.js

5
lib/rules_core/normalize.js

@ -3,8 +3,9 @@
'use strict';
var NEWLINES_RE = /\r[\n\u0085]?|[\u2424\u2028\u0085]/g;
var NULL_RE = /\u0000/g;
// https://spec.commonmark.org/0.29/#line-ending
var NEWLINES_RE = /\r\n?|\n/g;
var NULL_RE = /\0/g;
module.exports = function normalize(state) {

Loading…
Cancel
Save