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.
This commit is contained in:
Andre Vehreschild 2022-04-19 17:54:27 +02:00
parent 730f4ba826
commit 57909db9cf

View File

@ -37,7 +37,7 @@ inline const RegEx& Blank() {
return e; return e;
} }
inline const RegEx& Break() { 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; return e;
} }
inline const RegEx& BlankOrBreak() { inline const RegEx& BlankOrBreak() {