From 23a37100f121edd0c1291c4a78901662eae5d58b Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 5 Jun 2024 13:35:20 -0700 Subject: Integration tests and "\r\n" DOS-style line feeds - Parse \r\n line feeds - Add simple integration tests to ensure regressions do not occur - Add test "wg1" for \r\n parsing --- src/wg2nd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wg2nd.cpp b/src/wg2nd.cpp index afe3132..d26d4c6 100644 --- a/src/wg2nd.cpp +++ b/src/wg2nd.cpp @@ -128,7 +128,7 @@ namespace wg2nd { { size_t i = 0, j = 0; for(; i < line.size(); i++) { - if(line[i] != ' ' and line[i] != '\t') { + if(line[i] != ' ' and line[i] != '\t' and line[i] != '\r') { line[j] = line[i]; j++; } -- cgit v1.2.3