aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2024-06-05 13:35:20 -0700
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2024-06-05 13:35:20 -0700
commit23a37100f121edd0c1291c4a78901662eae5d58b (patch)
tree1b16a2f5b53746b0bef8f5f7f92729f128d2baaa /src
parent24ac246d85115396489f970d2396acdbad93431b (diff)
downloadwg2nd-0.2.1.tar.xz
wg2nd-0.2.1.zip
Integration tests and "\r\n" DOS-style line feedsHEADv0.2.1main
- Parse \r\n line feeds - Add simple integration tests to ensure regressions do not occur - Add test "wg1" for \r\n parsing
Diffstat (limited to 'src')
-rw-r--r--src/wg2nd.cpp2
1 files changed, 1 insertions, 1 deletions
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++;
}