Match \r as single char.

Comply to YAML std 5.4 [25] instead of matching \r only in combination
with \n.
This commit is contained in:
Andre Vehreschild 2022-03-30 18:06:12 +02:00
parent 001cf4d2c8
commit 009672012c

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\n"); static const RegEx e = RegEx('\n') | RegEx("\r");
return e; return e;
} }
inline const RegEx& BlankOrBreak() { inline const RegEx& BlankOrBreak() {