Skip to content

Commit

Permalink
Remove extra chars from line breaks check (match CM spec)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Aug 11, 2019
2 parents 9bbefc1 + faecae0 commit 39a35f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rules_core/normalize.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 39a35f4

Please sign in to comment.