From faecae0ba706f495eb6b559bc9632f199a6be84f Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sun, 11 Aug 2019 13:07:42 +0200 Subject: [PATCH] Match CommonMark spec exactly --- lib/rules_core/normalize.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rules_core/normalize.js b/lib/rules_core/normalize.js index 68fb392..ad196cd 100644 --- a/lib/rules_core/normalize.js +++ b/lib/rules_core/normalize.js @@ -3,7 +3,8 @@ 'use strict'; -var NEWLINES_RE = /\r[\n\x85]?|[\u2424\x85]/g; +// https://spec.commonmark.org/0.29/#line-ending +var NEWLINES_RE = /\r\n?|\n/g; var NULL_RE = /\0/g;