From 57909db9cf53e77a0af4e08b3f636924d147a06c Mon Sep 17 00:00:00 2001 From: Andre Vehreschild Date: Tue, 19 Apr 2022 17:54:27 +0200 Subject: [PATCH] Fix CRNL not recognized as Break. Fix regression introduced by #1094. In a Windows formatted yaml file, i.e. one with CRNL line endings a block value is not reliably recognized. --- src/exp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exp.h b/src/exp.h index c623ec9..a0d6d76 100644 --- a/src/exp.h +++ b/src/exp.h @@ -37,7 +37,7 @@ inline const RegEx& Blank() { return e; } inline const RegEx& Break() { - static const RegEx e = RegEx('\n') | RegEx("\r"); + static const RegEx e = RegEx('\n') | RegEx("\r\n") | RegEx('\r'); return e; } inline const RegEx& BlankOrBreak() {