diff options
author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-02-02 10:38:02 +0100 |
---|---|---|
committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-02-02 10:38:02 +0100 |
commit | 45aa55404657e17d3298db44087b9f7f384f4c8e (patch) | |
tree | 6829fd90bc68308d47a0c9efee26908146a9300d | |
parent | 11d8df8b75b235d8785ce1a400bfcb7a83c52f80 (diff) |
removed trim of trailing spaces
-rw-r--r-- | build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -462,7 +462,7 @@ const exercises = [_]Exercise{ // }, .{ .main_file = "999_the_end.zig", - .output = "This is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.", + .output = "\nThis is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.", }, }; @@ -687,9 +687,9 @@ const ZiglingStep = struct { }, } - const trimOutput = std.mem.trim(u8, output, " \r\n"); - const trimExerciseOutput = std.mem.trim(u8, self.exercise.output, " \r\n"); // validate the output + const trimOutput = std.mem.trimRight(u8, output, " \r\n"); + const trimExerciseOutput = std.mem.trimRight(u8, self.exercise.output, " \r\n"); if (std.mem.indexOf(u8, trimOutput, trimExerciseOutput) == null or trimOutput.len != trimExerciseOutput.len) { print( \\ |