diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2024-06-05 13:35:20 -0700 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2024-06-05 13:35:20 -0700 |
commit | 23a37100f121edd0c1291c4a78901662eae5d58b (patch) | |
tree | 1b16a2f5b53746b0bef8f5f7f92729f128d2baaa /src | |
parent | 24ac246d85115396489f970d2396acdbad93431b (diff) | |
download | wg2nd-23a37100f121edd0c1291c4a78901662eae5d58b.tar.xz wg2nd-23a37100f121edd0c1291c4a78901662eae5d58b.zip |
- 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.cpp | 2 |
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++; } |