aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-01-21 18:09:39 +0100
committerGitHub <noreply@github.com>2023-01-21 18:09:39 +0100
commit039e4736caf91f8021cb5bf36a1b4a14bb8e8c74 (patch)
tree398bdb317f577ce881b1b2ff7c22ca8ddd2794a0
parent8b7afad57a3ba168cfffa0c48b53551966712d31 (diff)
parent7fb9b199a32477213745483e0aa6b79ce032d2d7 (diff)
Merge pull request #167 from chrboesch/build
trim of leading spaces added
-rw-r--r--build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index d8356f5..2f84fbb 100644
--- a/build.zig
+++ b/build.zig
@@ -8,7 +8,7 @@ const print = std.debug.print;
// When changing this version, be sure to also update README.md in two places:
// 1) Getting Started
// 2) Version Changes
-const needed_version = std.SemanticVersion.parse("0.10.0-dev.3978") catch unreachable;
+const needed_version = std.SemanticVersion.parse("0.11.0-dev.1302") catch unreachable;
const Exercise = struct {
/// main_file must have the format key_name.zig.
@@ -683,8 +683,8 @@ const ZiglingStep = struct {
},
}
- const trimOutput = std.mem.trimRight(u8, output, " \r\n");
- const trimExerciseOutput = std.mem.trimRight(u8, self.exercise.output, " \r\n");
+ const trimOutput = std.mem.trim(u8, output, " \r\n");
+ const trimExerciseOutput = std.mem.trim(u8, self.exercise.output, " \r\n");
// validate the output
if (std.mem.indexOf(u8, trimOutput, trimExerciseOutput) == null or trimOutput.len != trimExerciseOutput.len) {
print(