From 009672012ccfab1d9fdb3a3d861b356717f8cb13 Mon Sep 17 00:00:00 2001 From: Andre Vehreschild Date: Wed, 30 Mar 2022 18:06:12 +0200 Subject: [PATCH] Match \r as single char. Comply to YAML std 5.4 [25] instead of matching \r only in combination with \n. --- src/exp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exp.h b/src/exp.h index 301449e..c623ec9 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\n"); + static const RegEx e = RegEx('\n') | RegEx("\r"); return e; } inline const RegEx& BlankOrBreak() {