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:
parent
730f4ba826
commit
57909db9cf
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user